Use of volume keys

#1

Hi,

under windows I used the mouse wheel for changing the Z-Position in a P3D-Environment. Now I want to do the same with the volume keys in android.

Is this possible?

Thanks in andvance

Michael

#2

I think that might be hard but maybe there’s a hacky way to do that using this event:

https://www.w3schools.com/jsref/event_onvolumechange.asp

#3

@MichaelHecht ===
that is a standard keyEvent for android: just override it
https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_DOWN

(of course the same for up or mute)