![]() |
SCENE C++ API
2.0.31
|
The LSKeyEvent class represents events which indicate that a keystroke occurred in a view. More...
#include <lskeyevent.h>
Public Member Functions | |
LSKeyEvent (ref_ptr< LSView > view, unsigned keyCode, unsigned repCount, unsigned flags) | |
Constructor. More... | |
unsigned | getKeyCode () const |
Get the virtual key code of the associated key. More... | |
unsigned | getRepCount () const |
Get the repeat count of the associated key. More... | |
unsigned | getFlags () const |
Get the flags associated with the event. More... | |
![]() | |
LSViewEvent (ref_ptr< LSView > view) | |
Constructor. More... | |
ref_ptr< LSView > | getView () const |
Gets the view instance for which the event is triggered. More... | |
![]() | |
LSEvent () | |
Constructor. More... | |
virtual | ~LSEvent () |
Destructor. More... | |
bool | isConsumed () const |
Query whether this event has been consumed. More... | |
void | consume () |
Consumes this event if the event can be consumed. More... | |
Additional Inherited Members | |
![]() | |
void | ref () const |
Increments the internal reference counter. More... | |
void | unref () const |
Decrements the internal reference counter. More... | |
The LSKeyEvent class represents events which indicate that a keystroke occurred in a view.
LSKeyEvent | ( | ref_ptr< LSView > | view, |
unsigned | keyCode, | ||
unsigned | repCount, | ||
unsigned | flags | ||
) |
Constructor.
view | The view for which the event was triggered |
keyCode | Specifies the virtual key code of the given key. |
repCount | Repeat count (the number of times the keystroke is repeated as a result of the user holding down the key) |
flags | Specifies the scan code, key-transition code, previous key state, and context code. |
unsigned getKeyCode | ( | ) | const |
Get the virtual key code of the associated key.
unsigned getRepCount | ( | ) | const |
Get the repeat count of the associated key.
unsigned getFlags | ( | ) | const |
Get the flags associated with the event.