blob: d44f94582a7f312f98dd8145009a09df0dc76393 [file] [log] [blame]
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -07001/*
2 * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef INPUT_H
8#define INPUT_H
9
10#include <linux/input.h>
11
12struct input_key_event {
13 uint16_t code;
14 unsigned char value;
15};
16
17int input_init();
18void input_close();
Dominik Behr93899452014-08-18 22:16:21 -070019int input_setfds(fd_set *read_set, fd_set *exception_set);
20struct input_key_event *input_get_event(fd_set *read_fds, fd_set *exception_set);
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070021void input_put_event(struct input_key_event *event);
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070022
23#endif