File: keystate.h

package info (click to toggle)
triggerhappy 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 248 kB
  • ctags: 137
  • sloc: ansic: 1,397; sh: 81; makefile: 40
file content (13 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Copyright 2010 Stefan Tomanek <stefan.tomanek+th@wertarbyte.de>
 * You have permission to copy, modify, and redistribute under the
 * terms of the GPLv3 or any later version.
 * For full license terms, see COPYING.
 */

#include <linux/input.h>
typedef unsigned short keystate_holder[KEY_MAX+1];

void init_keystate_holder(keystate_holder**);
void change_keystate(keystate_holder, struct input_event);
char *get_keystate(keystate_holder);
char *get_keystate_ignore_key(keystate_holder, int ignore_key);