blob: 0876a5ce5ea91a0308d928795c4b3b04781ed56e [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>
David Sodman8ef20062015-01-06 09:23:40 -080011
David Sodmanbf3f2842014-11-12 08:26:58 -080012#include "term.h"
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070013
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070014int input_init();
15void input_close();
Dominik Behrd7112672016-01-20 16:59:34 -080016void input_add_fds(fd_set* read_set, fd_set* exception_set, int *maxfd);
Dominik Behr44e07e62016-01-13 19:43:57 -080017void input_dispatch_io(fd_set* read_set, fd_set* exception_set);
Dominik Behr5239cca2016-01-21 18:22:04 -080018int input_add(const char* devname);
19void input_remove(const char* devname);
Dominik Behrd2cc4d22016-01-29 17:31:52 -080020int input_check_lid_state(void);
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070021
22#endif