The Following 4 Users Say Thank You to rainisto For This Useful Post: | ||
![]() |
2012-12-06
, 12:54
|
|
Posts: 218 |
Thanked: 151 times |
Joined on Dec 2011
@ Slovakia
|
#42
|
![]() |
2012-12-06
, 14:22
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#43
|
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...)
![]() |
2012-12-06
, 14:28
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#44
|
![]() |
2012-12-06
, 14:41
|
|
Posts: 218 |
Thanked: 151 times |
Joined on Dec 2011
@ Slovakia
|
#45
|
The Following User Says Thank You to Rusnak-COBRA For This Useful Post: | ||
![]() |
2012-12-06
, 14:43
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#46
|
![]() |
2012-12-06
, 18:40
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#47
|
The Following User Says Thank You to rainisto For This Useful Post: | ||
![]() |
2012-12-06
, 20:01
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#48
|
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 key == 1 and state == 2 and camera_app_on_top():
The Following User Says Thank You to thp For This Useful Post: | ||
![]() |
2012-12-06
, 20:02
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#49
|
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():
![]() |
2012-12-06
, 20:22
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#50
|
Can you build for me the deb file and i will install it please?
Let me know if you need some informations about the place of camera button on the hardware or if you need some terminal infos.
The Following 3 Users Say Thank You to thp For This Useful Post: | ||
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.