Change GetInputDeviceState to return InputDeviceState_NoInputHandler instead of InputDeviceState_Invalid
Rename "_Disconnected" to "_Unplugged"
This commit is contained in:
@@ -151,7 +151,7 @@ InputDeviceState RageInput::GetInputDeviceState( InputDevice id )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return InputDeviceState_Invalid;
|
return InputDeviceState_NoInputHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
RString RageInput::GetDisplayDevicesString() const
|
RString RageInput::GetDisplayDevicesString() const
|
||||||
|
|||||||
@@ -10,8 +10,9 @@
|
|||||||
|
|
||||||
static const char *InputDeviceStateNames[] = {
|
static const char *InputDeviceStateNames[] = {
|
||||||
"Connected",
|
"Connected",
|
||||||
"Disconnected",
|
"Unplugged",
|
||||||
"MissingMultitap",
|
"NeedsMultitap",
|
||||||
|
"NoInputHandler",
|
||||||
};
|
};
|
||||||
XToString( InputDeviceState );
|
XToString( InputDeviceState );
|
||||||
|
|
||||||
|
|||||||
@@ -77,9 +77,10 @@ struct InputDeviceInfo
|
|||||||
|
|
||||||
enum InputDeviceState
|
enum InputDeviceState
|
||||||
{
|
{
|
||||||
InputDeviceState_Connected,
|
InputDeviceState_Connected, // has an InputHandler and controller is plugged in
|
||||||
InputDeviceState_Disconnected,
|
InputDeviceState_Unplugged, // has an InputHandler but controller is unplugged or lost wireless link
|
||||||
InputDeviceState_MissingMultitap,
|
InputDeviceState_NeedsMultitap, // has an InputHandler but needs a multitap to function
|
||||||
|
InputDeviceState_NoInputHandler, // there is no InputHandler that implements this InputDevice
|
||||||
NUM_InputDeviceState,
|
NUM_InputDeviceState,
|
||||||
InputDeviceState_Invalid
|
InputDeviceState_Invalid
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user