![]() |
Murl Engine API
Version 2018.3
|
The game controller mapping interface. More...
#include <murl_i_game_controller_mapping.h>
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.
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 } |
Definition of axis events. More... | |
typedef SharedArray< AxisRawData > | AxisRawDataArray |
Definition of an array holding AxisRawData values. | |
typedef SharedArray< AxisMapping > | AxisMappingArray |
Definition of an array holding AxisMapping values. | |
typedef SharedArray< ButtonMapping > | ButtonMappingArray |
Definition of an array holding ButtonMapping values. | |
typedef SharedArray< PovMapping > | PovMappingArray |
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... | |
Definition of axis events.
Get the current raw data.
rawData | The raw data return value. |
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.
rawData | The raw data to set. |
|
pure virtual |
Get the mapping data.
rawMapping | The mapping data return value. |
|
pure virtual |
Set the mapping data.
Automatically sets the game controller's available controls based on the raw mapping.
rawMapping | The mapping data to set. |