BarrowBloke
Member
Hi,
I've been trying to use all the buttons on the FireTv Remote - including the 3 media buttons for Rewind, Play/Pause and Fast Forward.
I did this successfully a few years ago in GMS1 using the guide here:
Retroids Dev Blog
But this doesn't seem to work in GMS2.
So I thought I'd iterate through all the buttons on the Remote and get their values to see which one was triggered when I pressed the relevant physical buttons.
Gamepad_button_count() returned 40 buttons which was a surprise as there are only 12 physical buttons on the Remote (if you count dpad up/down etc as a button each).
And gamepad_button_value() showed nothing for any of these 40 buttons when I pressed any of the 3 physical media buttons.
I did look at the mapping returned by gamepad_get_mapping() but, if I understand the manual correctly, this just maps buttons to SDL constants.
The mapping string returned was:
none,Amazon Fire TV Remote,platform:android,a:b0,b:b4,dpup:b11,dpdown:b12,dpleft:b13,dpright:b14,
So I'm not sure what to do now. Can anyone advise on any more I might do?
Regards,
I've been trying to use all the buttons on the FireTv Remote - including the 3 media buttons for Rewind, Play/Pause and Fast Forward.
I did this successfully a few years ago in GMS1 using the guide here:
Retroids Dev Blog
But this doesn't seem to work in GMS2.
So I thought I'd iterate through all the buttons on the Remote and get their values to see which one was triggered when I pressed the relevant physical buttons.
Gamepad_button_count() returned 40 buttons which was a surprise as there are only 12 physical buttons on the Remote (if you count dpad up/down etc as a button each).
And gamepad_button_value() showed nothing for any of these 40 buttons when I pressed any of the 3 physical media buttons.
I did look at the mapping returned by gamepad_get_mapping() but, if I understand the manual correctly, this just maps buttons to SDL constants.
The mapping string returned was:
none,Amazon Fire TV Remote,platform:android,a:b0,b:b4,dpup:b11,dpdown:b12,dpleft:b13,dpright:b14,
So I'm not sure what to do now. Can anyone advise on any more I might do?
Regards,