Skip to content

Commit

Permalink
Merge pull request #17562 from hrydgard/unknownbrackets-device-id
Browse files Browse the repository at this point in the history
Android: Correct pad name tracking
  • Loading branch information
hrydgard committed Jun 12, 2023
2 parents 4dd4bf2 + f5f3afb commit 1f4142e
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 1f4142e

Please sign in to comment.