Deadalus
Public Member Functions | Public Attributes
JoystickEvent Class Reference

Encapsulates all data relevant to a sampled joystick event. More...

#include <joystick.hh>

List of all members.

Public Member Functions

bool isButton ()
 Returns true if this event is the result of a button press.
bool isAxis ()
 Returns true if this event is the result of an axis movement.
bool isInitialState ()
 Returns true if this event is part of the initial state obtained when the joystick is first connected to.

Public Attributes

unsigned int time
 The timestamp of the event, in milliseconds.
short value
unsigned char type
 The event type.
unsigned char number
 The axis/button number.

Detailed Description

Encapsulates all data relevant to a sampled joystick event.


Member Data Documentation

The value associated with this joystick event. For buttons this will be either 1 (down) or 0 (up). For axes, this will range between -32768 and 32768.


The documentation for this class was generated from the following file:
 All Classes Functions Variables