It seems like key_trigger inputs aren’t working as it should on Android from an external bluetooth keyboard.
Based on the Getting started Tutorial, I changed the input to do be like this for testing purposes:
function on_input(self, action_id, action)
if action_id == hash("jump") then
jump(self)
elseif action_id == hash("abortjump") then
abort_jump(self)
end
end
The keybindings are like this:
key_trigger {
input: KEY_SPACE
action: "jump"
}
key_trigger {
input: KEY_ENTER
action: "abortjump"
}
key_trigger {
input: KEY_UP
action: "jump"
}
key_trigger {
input: KEY_DOWN
action: "abortjump"
}
Hitting Enter on the bluetooth keyboard triggers the ‘jump’ action multiple times like the key is ‘stuck’ down. All the other keys seem to go into ‘void’.
I’ve tested on Galaxy S4, Xperia Z5 and Galaxy Tab 2.
I’m unsure if this is a feature request or a bug.
I’ve also tried both KeyEvent and HiddenInputField in the project settings, same result for both.