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:
@@ -20,11 +20,14 @@
|
|||||||
class WXDLLIMPEXP_CORE wxKeyboardState
|
class WXDLLIMPEXP_CORE wxKeyboardState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxKeyboardState()
|
wxKeyboardState(bool controlDown = false,
|
||||||
: m_controlDown(false),
|
bool shiftDown = false,
|
||||||
m_shiftDown(false),
|
bool altDown = false,
|
||||||
m_altDown(false),
|
bool metaDown = false)
|
||||||
m_metaDown(false)
|
: m_controlDown(controlDown),
|
||||||
|
m_shiftDown(shiftDown),
|
||||||
|
m_altDown(altDown),
|
||||||
|
m_metaDown(metaDown)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -26,11 +26,14 @@ class wxKeyboardState
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Default constructor.
|
Constructor initializes the modifier key settings.
|
||||||
|
|
||||||
By default, no modifiers are active.
|
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.
|
Return the bit mask of all pressed modifier keys.
|
||||||
|
Reference in New Issue
Block a user