newspeoplefor developersdocumentationdownloads

nInputEvent Class Reference
[Input Subsystem]

#include <ninputevent.h>

Inheritance diagram for nInputEvent:

nNode List of all members.

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

nInputEvent::nInputEvent  )  [inline]
 

constructor

Definition at line 157 of file ninputevent.h.


Member Function Documentation

void nInputEvent::SetType nInputType  t  )  [inline]
 

set input event type

Definition at line 176 of file ninputevent.h.

nInputType nInputEvent::GetType  )  [inline]
 

get input event type

Definition at line 186 of file ninputevent.h.

void nInputEvent::SetDeviceId int  id  )  [inline]
 

set device id

Definition at line 196 of file ninputevent.h.

int nInputEvent::GetDeviceId  )  [inline]
 

get device id

Definition at line 206 of file ninputevent.h.

void nInputEvent::SetKey nKey  k  )  [inline]
 

set key code

Definition at line 216 of file ninputevent.h.

nKey nInputEvent::GetKey  )  [inline]
 

get key code

Definition at line 226 of file ninputevent.h.

void nInputEvent::SetChar int  c  )  [inline]
 

set character code

Definition at line 236 of file ninputevent.h.

int nInputEvent::GetChar  )  [inline]
 

get character code

Definition at line 246 of file ninputevent.h.

void nInputEvent::SetButton int  b  )  [inline]
 

set button number

Definition at line 256 of file ninputevent.h.

int nInputEvent::GetButton  )  [inline]
 

get button number

Definition at line 266 of file ninputevent.h.

void nInputEvent::SetAxis int  a  )  [inline]
 

set axis number

Definition at line 276 of file ninputevent.h.

int nInputEvent::GetAxis  )  [inline]
 

get axis number

Definition at line 286 of file ninputevent.h.

void nInputEvent::SetPov int  p  )  [inline]
 

set pov number

Definition at line 296 of file ninputevent.h.

int nInputEvent::GetPov  )  [inline]
 

get pov number

Definition at line 306 of file ninputevent.h.

void nInputEvent::SetAxisValue float  v  )  [inline]
 

set axis value

Definition at line 316 of file ninputevent.h.

float nInputEvent::GetAxisValue  )  [inline]
 

get axis value

Definition at line 326 of file ninputevent.h.

void nInputEvent::SetAbsPos int  x,
int  y
[inline]
 

set absolute mouse position

Definition at line 336 of file ninputevent.h.

int nInputEvent::GetAbsXPos  )  [inline]
 

get absolute x mouse position

Definition at line 347 of file ninputevent.h.

int nInputEvent::GetAbsYPos  )  [inline]
 

get absolute y mouse position

Definition at line 357 of file ninputevent.h.

void nInputEvent::SetRelPos float  x,
float  y
[inline]
 

set relative mouse position

Definition at line 367 of file ninputevent.h.

float nInputEvent::GetRelXPos  )  [inline]
 

get relative x mouse position

Definition at line 378 of file ninputevent.h.

float nInputEvent::GetRelYPos  )  [inline]
 

get relative y mouse position

Definition at line 388 of file ninputevent.h.

void nInputEvent::SetDisabled bool  b  )  [inline]
 

set disabled flag

Definition at line 398 of file ninputevent.h.

bool nInputEvent::IsDisabled  )  [inline]
 

get disabled flag

Definition at line 415 of file ninputevent.h.


The documentation for this class was generated from the following file:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.