nInputEvent Class Reference
[Input Subsystem]
#include <ninputevent.h>
Inheritance diagram for nInputEvent:

Detailed Description
Nebula Input Events.nInputEvents are attached to the nInputServer from arbitrary sources.
InputEvents have a type that describe the kind of event it represents (Key press, mouse movement, etc), a device type which describes the base type of the input device, and a device number greater than 0 when multiple devices of the same type are attached.
This information can be mapped into a string.
Definition at line 77 of file ninputevent.h.
Public Member Functions | |
| nInputEvent () | |
| constructor | |
| void | SetType (nInputType t) |
| set input event type | |
| nInputType | GetType () |
| get input event type | |
| void | SetDeviceId (int id) |
| set device id | |
| int | GetDeviceId () |
| get device id | |
| void | SetKey (nKey k) |
| set key code | |
| nKey | GetKey () |
| get key code | |
| void | SetChar (int c) |
| set character code | |
| int | GetChar () |
| get character code | |
| void | SetButton (int b) |
| set button number | |
| int | GetButton () |
| get button number | |
| void | SetAxis (int a) |
| set axis number | |
| int | GetAxis () |
| get axis number | |
| void | SetPov (int p) |
| set pov number | |
| int | GetPov () |
| get pov number | |
| void | SetAxisValue (float v) |
| set axis value | |
| float | GetAxisValue () |
| get axis value | |
| void | SetAbsPos (int x, int y) |
| set absolute mouse position | |
| int | GetAbsXPos () |
| get absolute x mouse position | |
| int | GetAbsYPos () |
| get absolute y mouse position | |
| void | SetRelPos (float x, float y) |
| set relative mouse position | |
| float | GetRelXPos () |
| get relative x mouse position | |
| float | GetRelYPos () |
| get relative y mouse position | |
| void | SetDisabled (bool b) |
| set disabled flag | |
| bool | IsDisabled () |
| get disabled flag | |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 157 of file ninputevent.h. |
Member Function Documentation
|
|
set input event type
Definition at line 176 of file ninputevent.h. |
|
|
get input event type
Definition at line 186 of file ninputevent.h. |
|
|
set device id
Definition at line 196 of file ninputevent.h. |
|
|
get device id
Definition at line 206 of file ninputevent.h. |
|
|
set key code
Definition at line 216 of file ninputevent.h. |
|
|
get key code
Definition at line 226 of file ninputevent.h. |
|
|
set character code
Definition at line 236 of file ninputevent.h. |
|
|
get character code
Definition at line 246 of file ninputevent.h. |
|
|
set button number
Definition at line 256 of file ninputevent.h. |
|
|
get button number
Definition at line 266 of file ninputevent.h. |
|
|
set axis number
Definition at line 276 of file ninputevent.h. |
|
|
get axis number
Definition at line 286 of file ninputevent.h. |
|
|
set pov number
Definition at line 296 of file ninputevent.h. |
|
|
get pov number
Definition at line 306 of file ninputevent.h. |
|
|
set axis value
Definition at line 316 of file ninputevent.h. |
|
|
get axis value
Definition at line 326 of file ninputevent.h. |
|
||||||||||||
|
set absolute mouse position
Definition at line 336 of file ninputevent.h. |
|
|
get absolute x mouse position
Definition at line 347 of file ninputevent.h. |
|
|
get absolute y mouse position
Definition at line 357 of file ninputevent.h. |
|
||||||||||||
|
set relative mouse position
Definition at line 367 of file ninputevent.h. |
|
|
get relative x mouse position
Definition at line 378 of file ninputevent.h. |
|
|
get relative y mouse position
Definition at line 388 of file ninputevent.h. |
|
|
set disabled flag
Definition at line 398 of file ninputevent.h. |
|
|
get disabled flag
Definition at line 415 of file ninputevent.h. |
The documentation for this class was generated from the following file: