allow specifying the initial modifier keys values in the ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8a3e536cd5
commit
ba4d737a9e
@ -20,11 +20,14 @@
|
||||
class WXDLLIMPEXP_CORE wxKeyboardState
|
||||
{
|
||||
public:
|
||||
wxKeyboardState()
|
||||
: m_controlDown(false),
|
||||
m_shiftDown(false),
|
||||
m_altDown(false),
|
||||
m_metaDown(false)
|
||||
wxKeyboardState(bool controlDown = false,
|
||||
bool shiftDown = false,
|
||||
bool altDown = false,
|
||||
bool metaDown = false)
|
||||
: m_controlDown(controlDown),
|
||||
m_shiftDown(shiftDown),
|
||||
m_altDown(altDown),
|
||||
m_metaDown(metaDown)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,14 @@ class wxKeyboardState
|
||||
{
|
||||
public:
|
||||
/**
|
||||
Default constructor.
|
||||
Constructor initializes the modifier key settings.
|
||||
|
||||
By default, no modifiers are active.
|
||||
*/
|
||||
wxKeyboardState();
|
||||
wxKeyboardState(bool controlDown,
|
||||
bool shiftDown,
|
||||
bool altDown,
|
||||
bool metaDown);
|
||||
|
||||
/**
|
||||
Return the bit mask of all pressed modifier keys.
|
||||
|
Loading…
Reference in New Issue
Block a user