1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
/* $Id: input_map.h,v 5.1 2008/10/26 15:10:17 lirc Exp $ */
/****************************************************************************
** input_map.h *************************************************************
****************************************************************************
*
* input_map.h - button namespace derived from Linux input layer
*
* Copyright (C) 2008 Christoph Bartelmus <lirc@bartelmus.de>
*
*/
#ifndef INPUT_MAP_H
#define INPUT_MAP_H
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#if defined __linux__
#include <linux/input.h>
#include <linux/uinput.h>
#endif
#if defined __linux__
typedef __u16 linux_input_code;
#else
typedef unsigned short linux_input_code;
#endif
int get_input_code(const char *name, linux_input_code * code);
void fprint_namespace(FILE * f);
int is_in_namespace(const char *name);
#endif /* INPUT_MAP_H */
|