Nux event class.
More...
#include <NuxGraphics/Events.h>
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
bool nux::Event::GetButtonState |
( |
int |
button | ) |
const |
Check if a mouse button is down.
- Parameters:
-
button | The button whose state is to be checked. |
- Returns:
- True if the button is down.
int nux::Event::GetDeltaX |
( |
| ) |
const |
int nux::Event::GetDeltaY |
( |
| ) |
const |
unsigned long nux::Event::GetEventButton |
( |
| ) |
const |
Get the button responsible for the event.
- Returns:
- The index of the button responsible for the event: 1 left mouse button, 2 middle mouse button, 3 right mouse button.
unsigned short nux::Event::GetKeyRepeatCount |
( |
| ) |
const |
unsigned long nux::Event::GetKeyState |
( |
| ) |
const |
unsigned long nux::Event::GetKeySym |
( |
| ) |
const |
Return virtual key code of the key that has triggered the last event.
Return virtual key code of the key that has triggered the last event.
- Returns:
- the virtual key code.
unsigned long nux::Event::GetMouseState |
( |
| ) |
const |
int nux::Event::GetRootX |
( |
| ) |
const |
int nux::Event::GetRootY |
( |
| ) |
const |
const TCHAR* nux::Event::GetText |
( |
| ) |
const |
unsigned long nux::Event::GetVirtualKeyState |
( |
unsigned long |
VirtualKey | ) |
const |
Return the state of the Virtual key.
Return the state of the Virtual key.
- Parameters:
-
VirtualKey | virtual key code. |
- Returns:
- 1 if the key is pressed, 0 if the key is released.
int nux::Event::GetX |
( |
| ) |
const |
int nux::Event::GetY |
( |
| ) |
const |
void nux::Event::Reset |
( |
| ) |
|
Field Documentation
The documentation for this class was generated from the following file: