home features api download svn donate licensesend a comment contact
Spanish  

IJoystickEvent Class Reference

The joystick event callbacks. More...

#include <ceJoystick.h>

Inheritance diagram for IJoystickEvent:

List of all members.

Public Member Functions

virtual void OnJoyButtonPressed (const IJoystickDevice *Owner, const int joyid, const unsigned int button, const SJoystickState &State)=0
 This callback is called when a button is pressed.
virtual void OnJoyButtonReleased (const IJoystickDevice *Owner, const int joyid, const unsigned int button, const SJoystickState &State)=0
 This callback is called when a button is released.
virtual void OnJoystickEvent (const IJoystickDevice *Owner, const int joyid, const SJoystickState &State)=0
 This callback is always called while is keep pressed any button or axis.

Detailed Description

The joystick event callbacks.

Note:
To recieve the joystick state, derive a class from this, and implement the methods here. Then set the callback to your joystick instance with IJoystickDevice::SetJoystickEvent().
See also:
IJoystickDevice

Member Function Documentation

virtual void OnJoyButtonPressed ( const IJoystickDevice Owner,
const int  joyid,
const unsigned int  button,
const SJoystickState State 
) [pure virtual]

This callback is called when a button is pressed.

Parameters:
Owner The joystick manager owner.
joyid The joystick id.
button The button was pressed.
State The joystick state.
See also:
OnJoyButtonReleased, OnJoystickEvent
virtual void OnJoyButtonReleased ( const IJoystickDevice Owner,
const int  joyid,
const unsigned int  button,
const SJoystickState State 
) [pure virtual]

This callback is called when a button is released.

Parameters:
Owner The joystick manager owner.
joyid The joystick id.
button The button was pressed.
State The joystick state.
See also:
OnJoyButtonPressed, OnJoystickEvent
virtual void OnJoystickEvent ( const IJoystickDevice Owner,
const int  joyid,
const SJoystickState State 
) [pure virtual]

This callback is always called while is keep pressed any button or axis.

Parameters:
Owner The joystick manager owner.
joyid The joystick id.
State The joystick state.
See also:
OnJoyButtonPressed, OnJoyButtonReleased

The documentation for this class was generated from the following file:
 
 
 SourceForge.net
 
   Creative Commons License   Except where otherwise noted, content on this site is
  licensed under a Creative Commons Attribution 3.0 License