aboutsummaryrefslogtreecommitdiff
path: root/include/hw/input/goldfish_events.h
blob: bff8a7b3d0f429ddd72be05da165cef031521d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (C) 2007-2013 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
*/
#ifndef _HW_GOLDFISH_EVENT_H
#define _HW_GOLDFISH_EVENT_H

extern int gf_get_event_type_count(void);
extern int gf_get_event_type_name(int type, char *buf);
extern int gf_get_event_type_value(char *codename);
extern int gf_get_event_code_count(const char *typename);
extern int gf_get_event_code_name(const char *typename, unsigned int code,
                                  char *buf);
extern int gf_get_event_code_value(int typeval, char *codename);
extern int gf_event_send(int type, int code, int value);

#endif