LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cEventManager Class Reference
#include <cEventManager.h>
Collaboration diagram for n2l::cEventManager:
[legend]List of all members.Static Public Member Functions
Friends
Detailed Description
- Note:
- This manager is not even remotely threadsafe. The only certainty when using this class concurrently between threads is a painful death.
Definition at line 45 of file cEventManager.h.
Member Function Documentation
|
|
Get the current top left and bottom right mappings for the mouse.
- Warning:
- These values are meaningless if mapping isn't enabled.
Definition at line 120 of file cEventManager.cpp.
Referenced by n2l::cGuiApp::run(). |
| const tBool n2l::cEventManager::mouseButtonDown |
( |
const tMouseButton |
iButton |
) |
[static] |
|
| void n2l::cEventManager::mouseMapCoordinates |
( |
const tMousePos & |
iTopLeft, |
|
|
const tMousePos & |
iBottomRight |
|
) |
[static] |
|
|
|
Provide a new screen resolution to map the mouse position to.
All mouse events will appear to come from the mapped dimensions in a 2-space float vector (tVector2f) with sub-pixel accuracy where appropriate. - Note:
- It is safe and allowed to invert vertically or horizontally the mapped coordinates if you so wish.
Mapping information is automatically updated if the screen is resized. No calls are necessary, though any events which took place before the resize will be scaled to the resolution that the screen was until the resize event.
Definition at line 110 of file cEventManager.cpp.
Referenced by n2l::cGuiApp::run(). |
| void n2l::cEventManager::mousePos |
( |
const tMousePos & |
iPos, |
|
|
const tBool |
iBlockEvent = false |
|
) |
[static] |
|
| const tMousePos & n2l::cEventManager::mousePos |
( |
|
) |
[static] |
|
| const tVector2f & n2l::cEventManager::mouseSystemToLocal |
( |
const tSint |
iX, |
|
|
const tSint |
iY |
|
) |
[static] |
|
Friends And Related Function Documentation
The documentation for this class was generated from the following files: