OpenGLPrakt --> events --> cEventProducer --> cEventInput

class cEventInput
    extends cEventProducer as public

Author:
unascribed

Version:
unknown

Source:
../src/cEventInput.hh:21

Constructors Index

cEventInput
[public] constructor (registers callback with GLUT)
cEventInput
[public] copy constructor
~cEventInput
[public] destructor


Methods Index

SendKeyEvent
[public] send a key event away
SendMouseMoveEvent
[public] send a mouse move
SendMousePressEvent
[public] send a mouse button press


Constructors

cEventInput

public cEventInput ( cEventDispatcher * disp ) ;

constructor (registers callback with GLUT)

Parameters:
disp cEventDispatcher to send all events to

cEventInput

public cEventInput ( const cEventInput & e ) ;

copy constructor

cEventInput

public virtual ~ cEventInput ( ) ;

destructor


Methods

SendKeyEvent

public virtual void SendKeyEvent ( unsigned char key ,
                                   int special ,
                                   int modifiers ) ;

send a key event away

Parameters:
key standard ASCII of pressed key (0 = special key)
special special key code, if key==0
modifiers active key modifiers (CTRL, etc.)

SendMouseMoveEvent

public virtual void SendMouseMoveEvent ( int x ,
                                         int y ) ;

send a mouse move

Parameters:
x x coordinate of mouse
y y coordinate of mouse

SendMousePressEvent

public virtual void SendMousePressEvent ( int button ,
                                          int state ,
                                          int x ,
                                          int y ) ;

send a mouse button press

Parameters:
button which button was affected
state was it pressed or released (GLUT_UP/GLUT_DOWN)
x x pos of mouse
y y pos of mouse

This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.