#include <jevois/Util/Console.H>
#include <stdexcept>
#include <string>
#include <linux/input.h>
#include <linux/kd.h>
#include <linux/keyboard.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <cctype>
Go to the source code of this file.
◆ BITS_PER_LONG
#define BITS_PER_LONG (sizeof(unsigned long) * 8) |
◆ IS_CONSOLE
#define IS_CONSOLE |
( |
|
fd | ) |
isatty(fd) && ioctl(fd, KDGKBTYPE, &arg) == 0 && ((arg == KB_101) || (arg == KB_84)) |
◆ K_OFF
◆ KDSKBMODE
◆ KDSKBMUTE
◆ LONG
◆ NBITS
◆ NELEMS
#define NELEMS |
( |
|
x | ) |
(sizeof(x) / sizeof((x)[0])) |
◆ OFF
◆ test_bit
#define test_bit |
( |
|
bit, |
|
|
|
array |
|
) |
| ((array[LONG(bit)] >> OFF(bit)) & 1) |