love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
200 stars 70 forks source link

Catching volume buttons #237

Closed ravener closed 2 years ago

ravener commented 2 years ago

Is there a way to handle volume buttons?

I previously used libGDX which allowed something like:

Gdx.input.setCatchKey(Keys.VOLUME_DOWN, true);

Then I can handle volume button presses like any other key.

It wasn't mentioned in the keyboard wiki so I'm wondering if it's already possible or if not, consider it a suggestion.

ravener commented 2 years ago

Seems like my internet lagged and two issues got opened, my bad.