wxKeyboardState
Methods
wxKeyboardState
Constructor initializes the modifier key settings.
AltDown
Returns true if the Alt key is pressed.
CmdDown
Returns true if the key used for command accelerators is pressed.
ControlDown
Returns true if the Control key or Apple/Command key under OS X is pressed.
GetModifiers
Return the bit mask of all pressed modifier keys.
HasModifiers
Returns true if Control or Alt are pressed.
MetaDown
Returns true if the Meta/Windows/Apple key is pressed.
RawControlDown
Returns true if the Control key (also under OS X).
SetAltDown
SetControlDown
SetMetaDown
SetRawControlDown
SetShiftDown
ShiftDown
Returns true if the Shift key is pressed.
wxKeyboardState
wxKeyboardState
(
bool
$controlDown
=
false
,
bool
$shiftDown
=
false
,
bool
$altDown
=
false
,
bool
$metaDown
=
false
)
Constructor initializes the modifier key settings.
AltDown
bool
AltDown
( )
Returns true if the Alt key is pressed.
CmdDown
bool
CmdDown
( )
Returns true if the key used for command accelerators is pressed.
ControlDown
bool
ControlDown
( )
Returns true if the Control key or Apple/Command key under OS X is pressed.
GetModifiers
integer
GetModifiers
( )
Return the bit mask of all pressed modifier keys.
HasModifiers
bool
HasModifiers
( )
Returns true if Control or Alt are pressed.
MetaDown
bool
MetaDown
( )
Returns true if the Meta/Windows/Apple key is pressed.
RawControlDown
bool
RawControlDown
( )
Returns true if the Control key (also under OS X).
SetAltDown
SetAltDown
(
bool
$down
)
SetControlDown
SetControlDown
(
bool
$down
)
SetMetaDown
SetMetaDown
(
bool
$down
)
SetRawControlDown
SetRawControlDown
(
bool
$down
)
SetShiftDown
SetShiftDown
(
bool
$down
)
ShiftDown
bool
ShiftDown
( )
Returns true if the Shift key is pressed.