Skip to content

Commit

Permalink
Android: Correct pad name tracking.
Browse files Browse the repository at this point in the history
This is split up in two messages, a bit ugly...
  • Loading branch information
unknownbrackets committed Jun 11, 2023
1 parent 4dd4bf2 commit f5f3afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/NativeApp.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit f5f3afb

Please sign in to comment.