Classes | |
class | ClassicalJoystick |
Models a classical joystick, with simplified access to the two main axes, commonly used to indicate the joystick current direction, with customizable deadzone support and two buttons directly managed. More... | |
class | EventsModule |
Handles the asynchronous event-based interaction model, general input handling, and basic time management, including the logic and rendering frequencies. More... | |
class | InputDevice |
Models an actual OSDL input device, instead of an abstract Ceylan input device. More... | |
class | InputDeviceHandlerException |
Mother class for all keyboard exceptions. More... | |
class | InputDeviceHandler |
Handler for all kinds of input devices. More... | |
class | Joystick |
Models a basic joystick, including relevant axes, hats, balls and buttons. More... | |
class | JoystickException |
Mother class for all joystick exceptions. More... | |
class | JoystickHandler |
Handler for all detected joysticks. More... | |
class | KeyboardException |
Mother class for all keyboard exceptions. More... | |
class | KeyboardHandler |
Handler for keyboard. More... | |
class | Mouse |
Models a basic mouse, including relevant buttons and wheels. More... | |
class | MouseException |
Mother class for all mouse exceptions. More... | |
class | MouseHandler |
Handler for mice connected to the system, if any. More... | |
Typedefs | |
typedef Ceylan::Uint32 | Tick |
A tick is the most precise time unit that can be measured by the system. | |
typedef Tick | EngineTick |
Engine tick is the most fine unit of time managed by the scheduler. | |
typedef Tick | SimulationTick |
Simulation tick is the most fine unit of time between two simulation steps. | |
typedef Tick | RenderingTick |
Rendering tick is the most fine unit of time between two rendering steps. | |
typedef Tick | InputTick |
Rendering ticks is the most fine unit of time between two input pollings. | |
typedef Ceylan::Uint32 | Hertz |
Unit for frequencies (Hz). | |
typedef EngineTick | Period |
Allows to count how many engine ticks should be waited by the scheduler until a new periodic event is triggered. | |
typedef Ceylan::Uint8 | BasicEventType |
typedef Ceylan::Uint8 | UserEventType |
typedef SDL_Joystick | RawJoystick |
Low level joystick object. | |
typedef Ceylan::Uint32 | JoystickNumber |
Number (index) of a joystick, or joystick count. | |
typedef Ceylan::Uint32 | JoystickAxesCount |
Number of joystick axis. | |
typedef Ceylan::Uint32 | JoystickTrackballsCount |
Number of joystick trackballs. | |
typedef Ceylan::Uint32 | JoystickHatsCount |
Number of joystick hats. | |
typedef Ceylan::Uint32 | JoystickButtonsCount |
Number of joystick buttons. | |
typedef Ceylan::Sint16 | AxisPosition |
Axis position, which ranges from -32768 to 32767. | |
typedef Ceylan::Uint8 | HatPosition |
Position of a hat, can be combined (OR'd) to make the eight possible directions. | |
typedef Ceylan::Sint32 | BallMotion |
Relative trackball motion. | |
typedef void(*) | KeyboardEventHandler (const KeyboardEvent &keyboardEvent) |
Pointer to functions managing specific keyboard events, i.e. | |
typedef Ceylan::Uint8 | MouseNumber |
Number (index) of a mouse, or mice count. | |
typedef Ceylan::Uint8 | MouseButtonNumber |
Number (index) of a mouse button, or buttons count. | |
typedef Ceylan::Uint8 | MouseWheelNumber |
Number (index) of a mouse wheel, or wheels count. | |
typedef Ceylan::Uint8 | MouseButtonMask |
Button mask, each bit tells whether the associated button is pressed. | |
Enumerations | |
enum | KeyboardMode { rawInput, textInput } |
Describes what is the current mode used to handle key presses and key releases. More... | |
Variables | |
const HatPosition | Centered |
State of a joystick hat. | |
const HatPosition | Up |
State of a joystick hat. | |
const HatPosition | Right |
State of a joystick hat. | |
const HatPosition | Down |
State of a joystick hat. | |
const HatPosition | Left |
State of a joystick hat. | |
const HatPosition | RightUp |
State of a joystick hat. | |
const HatPosition | RightDown |
State of a joystick hat. | |
const HatPosition | LeftUp |
State of a joystick hat. | |
const HatPosition | LeftDown |
State of a joystick hat. | |
OSDL_DLL const MouseNumber | DefaultMouse |
Identifies the default mouse (the first one). | |
OSDL_DLL const MouseButtonNumber | LeftButton |
Identifies the left button of a mouse. | |
OSDL_DLL const MouseButtonNumber | MiddleButton |
Identifies the middle button of a mouse. | |
OSDL_DLL const MouseButtonNumber | RightButton |
Identifies the right button of a mouse. | |
OSDL_DLL const MouseButtonNumber | WheelUp |
Identifies the virtual button of a mouse corresponding to its wheel being up. | |
OSDL_DLL const MouseButtonNumber | WheelDown |
Identifies the virtual button of a mouse corresponding to its wheel being down. |
typedef Ceylan::Sint16 OSDL::Events::AxisPosition |
Axis position, which ranges from -32768 to 32767.
Definition at line 45 of file OSDLJoystickCommon.h.
typedef Ceylan::Sint32 OSDL::Events::BallMotion |
typedef Ceylan::Uint8 OSDL::Events::BasicEventType |
Definition at line 134 of file OSDLEvents.h.
typedef Tick OSDL::Events::EngineTick |
Engine tick is the most fine unit of time managed by the scheduler.
Definition at line 69 of file OSDLEvents.h.
typedef Ceylan::Uint8 OSDL::Events::HatPosition |
Position of a hat, can be combined (OR'd) to make the eight possible directions.
Definition at line 53 of file OSDLJoystickCommon.h.
typedef Ceylan::Uint32 OSDL::Events::Hertz |
Unit for frequencies (Hz).
For example, a periodical event whose frequency is 100 Hz would happen once on each period P = 1/100 s = 10 ms.
Definition at line 114 of file OSDLEvents.h.
typedef Tick OSDL::Events::InputTick |
Rendering ticks is the most fine unit of time between two input pollings.
Definition at line 102 of file OSDLEvents.h.
typedef Ceylan::Uint32 OSDL::Events::JoystickAxesCount |
typedef Ceylan::Uint32 OSDL::Events::JoystickButtonsCount |
typedef Ceylan::Uint32 OSDL::Events::JoystickHatsCount |
typedef Ceylan::Uint32 OSDL::Events::JoystickNumber |
Number (index) of a joystick, or joystick count.
Definition at line 24 of file OSDLJoystickCommon.h.
typedef Ceylan::Uint32 OSDL::Events::JoystickTrackballsCount |
typedef void(* ) OSDL::Events::KeyboardEventHandler(const KeyboardEvent &keyboardEvent) |
Pointer to functions managing specific keyboard events, i.e.
a specific set of keys that may be pressed or released.
Definition at line 51 of file OSDLKeyboardHandler.h.
typedef Ceylan::Uint8 OSDL::Events::MouseButtonMask |
Button mask, each bit tells whether the associated button is pressed.
Definition at line 42 of file OSDLMouseCommon.h.
typedef Ceylan::Uint8 OSDL::Events::MouseButtonNumber |
Number (index) of a mouse button, or buttons count.
Definition at line 31 of file OSDLMouseCommon.h.
typedef Ceylan::Uint8 OSDL::Events::MouseNumber |
typedef Ceylan::Uint8 OSDL::Events::MouseWheelNumber |
typedef EngineTick OSDL::Events::Period |
Allows to count how many engine ticks should be waited by the scheduler until a new periodic event is triggered.
Period is a specialization of engine ticks in the case of periodic events.
Definition at line 125 of file OSDLEvents.h.
typedef SDL_Joystick OSDL::Events::RawJoystick |
typedef Tick OSDL::Events::RenderingTick |
Rendering tick is the most fine unit of time between two rendering steps.
Definition at line 91 of file OSDLEvents.h.
typedef Tick OSDL::Events::SimulationTick |
Simulation tick is the most fine unit of time between two simulation steps.
Definition at line 80 of file OSDLEvents.h.
typedef Ceylan::Uint32 OSDL::Events::Tick |
A tick is the most precise time unit that can be measured by the system.
Definition at line 49 of file OSDLEvents.h.
typedef Ceylan::Uint8 OSDL::Events::UserEventType |
Definition at line 143 of file OSDLEvents.h.
Describes what is the current mode used to handle key presses and key releases.
Keyboard starts in raw input mode.
Definition at line 88 of file OSDLKeyboardHandler.h.
Identifies the default mouse (the first one).
Definition at line 12 of file OSDLMouseCommon.cc.
Referenced by OSDL::Events::MouseHandler::focusGained(), OSDL::Events::Mouse::focusGained(), OSDL::Events::MouseHandler::focusLost(), OSDL::Events::Mouse::focusLost(), OSDL::Events::MouseHandler::linkToController(), and OSDL::Events::Mouse::mouseMoved().
const HatPosition OSDL::Events::Up |
Identifies the virtual button of a mouse corresponding to its wheel being down.
Definition at line 22 of file OSDLMouseCommon.cc.
Identifies the virtual button of a mouse corresponding to its wheel being up.
Definition at line 21 of file OSDLMouseCommon.cc.