Murl::IGameControllerMapping::ButtonMapping Class Reference

The button mapping. More...

#include "murl_i_game_controller_mapping.h"

Public Member Functions

 ButtonMapping ()
 The default constructor.
 
 ButtonMapping (UInt32 buttonIndex, IEnums::GameControllerButton destinationButton)
 Constructor taking initialization values. More...
 
bool operator== (const ButtonMapping &rhs) const
 The "equal to" comparison operator. More...
 
bool operator!= (const ButtonMapping &rhs) const
 The "not equal to" comparison operator. More...
 

Public Attributes

UInt32 mButtonIndex
 The button index to read the raw button value from.
 
IEnums::GameControllerButton mDestinationButton
 The destination button to post the button state.
 

Detailed Description

The button mapping.

Describes how to map the button raw data to a game controller button.

Constructor & Destructor Documentation

◆ ButtonMapping()

Murl::IGameControllerMapping::ButtonMapping::ButtonMapping ( UInt32  buttonIndex,
IEnums::GameControllerButton  destinationButton 
)
inline

Constructor taking initialization values.

Parameters
buttonIndexThe button index to read the raw button value from.
destinationButtonThe destination button to post the button state.

Member Function Documentation

◆ operator==()

bool Murl::IGameControllerMapping::ButtonMapping::operator== ( const ButtonMapping rhs) const
inline

The "equal to" comparison operator.

Parameters
rhsThe right hand side button mapping to compare.
Returns
true if all members are exactly the same.

References mButtonIndex, and mDestinationButton.

◆ operator!=()

bool Murl::IGameControllerMapping::ButtonMapping::operator!= ( const ButtonMapping rhs) const
inline

The "not equal to" comparison operator.

Parameters
rhsThe right hand side button mapping to compare.
Returns
true if the objects differ.

References mButtonIndex, and mDestinationButton.


The documentation for this class was generated from the following file:
  • murl_i_game_controller_mapping.h


Copyright © 2011-2018 Spraylight GmbH.