git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b97149
)
pndevmapperd: trigger non-hold key events on keydown
author
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 10 Feb 2012 22:56:51 +0000
(
00:56
+0200)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 10 Feb 2012 23:10:45 +0000
(
01:10
+0200)
just got annoyed by unresponsive brightness controls
apps/pndevmapperd.c
patch
|
blob
|
history
diff --git
a/apps/pndevmapperd.c
b/apps/pndevmapperd.c
index
516b82c
..
7de7938
100644
(file)
--- a/
apps/pndevmapperd.c
+++ b/
apps/pndevmapperd.c
@@
-712,7
+712,13
@@
void dispatch_key ( int keycode, int val ) {
// is this a keydown or a keyup?
if ( val == 1 ) {
// keydown
- g_evmap [ i ].keydown_time = time ( NULL );
+
+ if ( g_evmap [ i ].maxhold == 0 ) {
+ g_evmap [ i ].keydown_time = 0;
+ invoke_it = 1;
+ } else {
+ g_evmap [ i ].keydown_time = time ( NULL );
+ }
} else if ( val == 2 && g_evmap [ i ].keydown_time ) {
// key is being held; we should check if max-hold is set