@ -481,6 +481,7 @@ std::map<std::pair<InputType,int>,GenericKey::KeyInfo> GenericKey::keyLiteral={
{ { KEY , OEM_8 } , { " \\ " } } ,
{ { KEY , OEM_8 } , { " \\ " } } ,
{ { KEY , CAPS_LOCK } , { " CAP LK " } } ,
{ { KEY , CAPS_LOCK } , { " CAP LK " } } ,
{ { KEY , olc : : ENUM_END } , { " " } } ,
{ { KEY , olc : : ENUM_END } , { " " } } ,
{ { KEY , SHOULDER } , { " Q-E " , " themes/button_qe.png " } } ,
{ { MOUSE , Mouse : : LEFT } , { " L.MOUSE " } } ,
{ { MOUSE , Mouse : : LEFT } , { " L.MOUSE " } } ,
{ { MOUSE , Mouse : : RIGHT } , { " R.MOUSE " } } ,
{ { MOUSE , Mouse : : RIGHT } , { " R.MOUSE " } } ,
{ { MOUSE , Mouse : : MIDDLE } , { " M.MOUSE " } } ,
{ { MOUSE , Mouse : : MIDDLE } , { " M.MOUSE " } } ,
@ -500,6 +501,7 @@ std::map<std::pair<InputType,int>,GenericKey::KeyInfo> GenericKey::keyLiteral={
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_R ) } , { " RIGHT " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_R ) } , { " RIGHT " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_U ) } , { " UP " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_U ) } , { " UP " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_D ) } , { " DOWN " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : DPAD_D ) } , { " DOWN " } } ,
{ { CONTROLLER , static_cast < int > ( GPButtons : : SHOULDER ) } , { " L1-R1 " , " themes/button_r1l1.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : LY ) } , { " Up/Down " , " themes/button_analogstick_vert.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : LY ) } , { " Up/Down " , " themes/button_analogstick_vert.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : RY ) } , { " Up/Down " , " themes/button_analogstick_vert.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : RY ) } , { " Up/Down " , " themes/button_analogstick_vert.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : LX ) } , { " Right/Left " , " themes/button_analogstick_horz.png " } } ,
{ { ANALOG , static_cast < int > ( GPAxes : : LX ) } , { " Right/Left " , " themes/button_analogstick_horz.png " } } ,
@ -589,8 +591,8 @@ const bool operator==(const Input&input1,const Input&input2){
return input1 . type = = input2 . type & & input1 . key = = input2 . key ;
return input1 . type = = input2 . type & & input1 . key = = input2 . key ;
}
}
InputEngageGroup : : InputEngageGroup ( InputGroup & group , EngageType type )
InputEngageGroup : : InputEngageGroup ( InputGroup & group , EngageType type , const bool labelVisible )
: group ( group ) , type ( type ) { }
: group ( group ) , type ( type ) , labelVisible ( labelVisible ) { }
const InputEngageGroup : : EngageType InputEngageGroup : : GetEngageType ( ) const {
const InputEngageGroup : : EngageType InputEngageGroup : : GetEngageType ( ) const {
@ -654,3 +656,7 @@ void InputListener::Update(){
const int Input : : GetKeyCode ( ) const {
const int Input : : GetKeyCode ( ) const {
return key ;
return key ;
}
}
const bool InputEngageGroup : : GetLabelVisible ( ) const {
return labelVisible ;
}