We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

handling physical buttons in apps [answered]

asked 2020-03-29 19:17:40 +0300

JulienBlanc gravatar image

I’m searching how to handle physical buttons (camera button and volume up/down menu) in apps (QML and/or C++), for custom behaviour. Can't find where to do it in the doc reference.

Any advice on this ?

Regards,

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Maus
close date 2020-03-31 21:23:59.114178

1 Answer

Sort by » oldest newest most voted
5

answered 2020-03-29 20:27:42 +0300

atlochowski gravatar image

Look at this code https://github.com/monich/harbour-counter In 1.0.4 Slava added support for volume keys. So you can find it in his code.

edit flag offensive delete publish link more

Comments

Thanks, exactly what i was looking for.

JulienBlanc ( 2020-03-30 08:32:56 +0300 )edit

You got a hint as to where in the code?

Tanghus ( 2020-04-02 16:58:01 +0300 )edit

👍 Thanks

Tanghus ( 2020-04-02 17:34:00 +0300 )edit

Question tools

Follow
3 followers

Stats

Asked: 2020-03-29 19:17:40 +0300

Seen: 327 times

Last updated: Mar 31 '20