The game controller mapping interface. More...
#include "murl_i_game_controller_mapping.h"
Inherited by Murl::Input::GameControllerMapping.
Classes | |
class | AxisMapping |
The raw axis mapping. More... | |
class | AxisRawData |
The raw axis data. More... | |
class | ButtonMapping |
The button mapping. More... | |
class | DeviceInfo |
Device information data. More... | |
class | PovMapping |
The point of view mapping. More... | |
class | RawData |
The game controller raw data. More... | |
class | RawMapping |
The game controller mapping data. More... | |
Public Types | |
enum | AxisType { AXIS_X , AXIS_Y , AXIS_Z , AXIS_RX , AXIS_RY , AXIS_RZ } |
Definition of raw data axis types. More... | |
enum | AxisEvent { AXIS_EVENT_NONE , AXIS_EVENT_LEFT_STICK_X , AXIS_EVENT_LEFT_STICK_Y , AXIS_EVENT_RIGHT_STICK_X , AXIS_EVENT_RIGHT_STICK_Y , AXIS_EVENT_L1_BUTTON , AXIS_EVENT_R1_BUTTON , AXIS_EVENT_L2_BUTTON , AXIS_EVENT_R2_BUTTON , NUM_AXIS_EVENTS } |
Definition of axis events. More... | |
using | AxisRawDataArray = SharedArray< AxisRawData > |
Definition of an array holding AxisRawData values. | |
using | AxisMappingArray = SharedArray< AxisMapping > |
Definition of an array holding AxisMapping values. | |
using | ButtonMappingArray = SharedArray< ButtonMapping > |
Definition of an array holding ButtonMapping values. | |
using | PovMappingArray = SharedArray< PovMapping > |
Definition of an array holding PovMapping values. | |
Public Member Functions | |
virtual Bool | GetRawData (RawData &rawData) const =0 |
Get the current raw data. More... | |
virtual Bool | SetRawData (const RawData &rawData)=0 |
Set the current raw data. More... | |
virtual Bool | GetRawMapping (RawMapping &rawMapping) const =0 |
Get the mapping data. More... | |
virtual Bool | SetRawMapping (const RawMapping &rawMapping)=0 |
Set the mapping data. More... | |
Detailed Description
The game controller mapping interface.
The IGameControllerMapping interface can be accessed by the Logic::IDeviceHandler::GetGameControllerMapping() method or the Input::IGameControllerDevice::GetMapping() method.
The RawData is supplied directly from the controller device and can be used to create an interactive mapping setup.
Use GetRawData() to determine the raw data on the game controller, afterwards use SetRawMapping() to setup a corresponding mapping.
Use Logic::IDeviceHandler::GetGameControllerDeviceInfo() or Input::IGameControllerDevice::GetDeviceInfo() to identify the controller.
Member Enumeration Documentation
◆ AxisType
◆ AxisEvent
Definition of axis events.
Member Function Documentation
◆ GetRawData()
Get the current raw data.
- Parameters
-
rawData The raw data return value.
- Returns
- true if successful.
◆ SetRawData()
Set the current raw data.
Automatically posts the game controller's events based on the raw data and mapping.
This is typically used by the device implementation only.
- Parameters
-
rawData The raw data to set.
- Returns
- true if successful.
◆ GetRawMapping()
|
pure virtual |
Get the mapping data.
- Parameters
-
rawMapping The mapping data return value.
- Returns
- true if successful.
◆ SetRawMapping()
|
pure virtual |
Set the mapping data.
Automatically sets the game controller's available controls based on the raw mapping.
- Parameters
-
rawMapping The mapping data to set.
- Returns
- true if successful.
The documentation for this interface was generated from the following file:
- murl_i_game_controller_mapping.h