mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Added set_release() and set_repeat()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1467 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5d6817de66
commit
52f54830da
1 changed files with 17 additions and 0 deletions
|
|
@ -21,6 +21,9 @@
|
|||
|
||||
#include "X11/keysym.h"
|
||||
|
||||
static int release_mask;
|
||||
static int repeat_mask;
|
||||
|
||||
/*
|
||||
*Initialize buttons
|
||||
*/
|
||||
|
|
@ -28,6 +31,20 @@ void button_init()
|
|||
{
|
||||
}
|
||||
|
||||
int button_set_repeat(int newmask)
|
||||
{
|
||||
int oldmask = repeat_mask;
|
||||
repeat_mask = newmask;
|
||||
return oldmask;
|
||||
}
|
||||
|
||||
int button_set_release(int newmask)
|
||||
{
|
||||
int oldmask = release_mask;
|
||||
release_mask = newmask;
|
||||
return oldmask;
|
||||
}
|
||||
|
||||
/*
|
||||
* Translate X keys to Recorder keys
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue