Android: Correct pad name tracking.

This is split up in two messages, a bit ugly...
This commit is contained in:
Unknown W. Brackets authored and GitHub committed 2023-06-11 15:43:21 -07:00
1 parent 4dd4bf24fc
commit f5f3afbeef
1 file changed
+2 -1
+2 -1
View File
@@ -1147,7 +1147,8 @@ void NativeRender(GraphicsContext *graphicsContext) {
}
void HandleGlobalMessage(const std::string &msg, const std::string &value) {
InputDeviceID nextInputDeviceID = DEVICE_ID_ANY;
// A bit ugly, see InputDeviceState.java.
static InputDeviceID nextInputDeviceID = DEVICE_ID_ANY;
if (msg == "inputDeviceConnectedID") {
nextInputDeviceID = (InputDeviceID)parseLong(value);
}