#include <PhxRawInputEngine.h>
Inheritance diagram for Phx::RawInputEngine:

Public Types | |
| typedef uint32_t | AxisState |
| A value type for the position of analog axes. | |
|
typedef ValueType< AxisIdentifierClass, uint32_t > | AxisIdentifier |
| A value type used to identify raw analog axes. | |
|
typedef ValueType< ButtonIdentifierClass, uint32_t > | ButtonIdentifier |
| A value type used to identify raw buttons. | |
|
typedef ValueType< ButtonStateClass, uint32_t > | ButtonState |
| A value type for the state of digital buttons. | |
Public Member Functions | |
| virtual Ptr< Driver > | newDriver (const String &driverName)=0 |
| Constructs a new Driver interface with the requested name. | |
| virtual Ptr< Client > | newClient (const String &driverName)=0 |
| Constructs a new Client interface that provides access to the button/axis state from the Driver of the given name. | |
| virtual std::vector< String > | driverNames (void) const =0 |
| Returns a list of names of all known drivers. | |
| virtual void | listener (Listener *listener)=0 |
| Sets a listener to be notified of events involving the RawInputEngine. | |
Static Public Attributes | |
| static const NamedInterface::Type | INTERFACE_TYPE |
| static const String | INTERFACE_TYPE_NAME |
| static const NamedInterface::Identifier | RAW_INPUT_ENGINE_IDENTIFIER |
| static const String | RAW_INPUT_ENGINE_NAME |
| static const AxisIdentifier | INVALID_AXIS_IDENTIFIER |
| An AxisIdentifier value that represents an invalid identifier. | |
| static const ButtonIdentifier | INVALID_BUTTON_IDENTIFIER |
| A ButtonIdentifier value that represents an invalid identifier. | |
| static const ButtonState | PRESSED |
| A standard value for the "pressed" state of a 2-state button. | |
| static const ButtonState | RELEASED |
| A standard value for the "released" state of a 2-state button. | |
Classes | |
| class | Client |
| The Client interface that allows access to the state of buttons and axes reported by a corresponding Driver. More... | |
| class | Driver |
| The driver interface through which device drivers deposit the current device state to be read by clients. More... | |
| class | Listener |
| Listener that receives notifications when a driver is created or deleted. More... | |
This layer is responsible for managing raw input from devices like mice, keyboards, and joysticks. This interface provides two sub-interfaces -- a client and a driver. A new driver interface can be constructed to represent a new device in the raw input layer. The device driver code then sets the current device state in this interface. The state that is set in the driver interface will be mirrored to attached client interfaces.
|
|
Returns a list of names of all known drivers.
|
|
|
Sets a listener to be notified of events involving the RawInputEngine.
|
|
|
Constructs a new Client interface that provides access to the button/axis state from the Driver of the given name. If no corresponding driver exists, the client will still be created, but the driver will not have any axes or buttons registered. If a Driver is later created with the same name, it will automatically begin supplying data.
|
|
|
Constructs a new Driver interface with the requested name.
|
1.4.2