SDL++
C++wrapperfortheSDLlibrary.

sdl::subsystem::JoystickBase Struct Reference

Base for the joystick subsystem. More...

#include <Subsystem.h>

List of all members.

Public Member Functions

void update ()
int numJoysticks ()
bool enableEvents ()
bool disableEvents ()
bool areEventsEnabled ()

Static Protected Member Functions

static const string name ()

Detailed Description

Base for the joystick subsystem.

Definition at line 223 of file Subsystem.h.


Member Function Documentation

bool sdl::subsystem::JoystickBase::areEventsEnabled ( ) [inline]

Determines if joystick event polling is enabled. Warning: Calling this function may delete all events currently in the queue.

Returns:
True if enabled, false otherwise.

Definition at line 256 of file Subsystem.h.

bool sdl::subsystem::JoystickBase::disableEvents ( ) [inline]

Disables joystick event polling. Warning: Calling this function may delete all events currently in the queue.

Returns:
True if successful, false otherwise.

Definition at line 248 of file Subsystem.h.

bool sdl::subsystem::JoystickBase::enableEvents ( ) [inline]

Enables joystick event polling. Warning: Calling this function may delete all events currently in the queue.

Returns:
True if successful, false otherwise.

Definition at line 240 of file Subsystem.h.

static const string sdl::subsystem::JoystickBase::name ( ) [inline, static, protected]

Returns the name of the Subsystem.

Returns:
The name of the Subsystem.

Definition at line 264 of file Subsystem.h.

int sdl::subsystem::JoystickBase::numJoysticks ( ) [inline]

Returns the number of available joysticks.

Definition at line 232 of file Subsystem.h.

void sdl::subsystem::JoystickBase::update ( ) [inline]

Updates the state of all joysticks.

Definition at line 227 of file Subsystem.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs