Android: Correct pad name tracking.

This is split up in two messages, a bit ugly...
This commit is contained in:
Unknown W. Brackets 2023-06-11 15:43:21 -07:00 committed by GitHub
parent 4dd4bf24fc
commit f5f3afbeef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}