View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#48
Originally Posted by rainisto View Post
Kernel already gives an keyevent when you trigger the camera button in /dev/input/event[x] device, you can just edit the application that uses volumebutton to trigger camera, to read from different event device and trigger the camera like that. Atleast thats how I 1st re-enabled camera key support back in the days a year ago (afterwards I recompiled camera application with the support...)
If it's exposed as QmKeys event, then edit line 61 of https://github.com/harmattan/camerra...ter/camerra.py like so:

Code:
    if key == 1 and state == 2 and camera_app_on_top():
 

The Following User Says Thank You to thp For This Useful Post: