#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
#include <chrono>
#include <iostream>
#include <string>
#include "vulp/observation/Source.h"
Go to the source code of this file.
|
enum class | vulp::observation::sources::Key {
vulp::observation::sources::UP
, vulp::observation::sources::DOWN
, vulp::observation::sources::LEFT
, vulp::observation::sources::RIGHT
,
vulp::observation::sources::W
, vulp::observation::sources::A
, vulp::observation::sources::S
, vulp::observation::sources::D
,
vulp::observation::sources::X
, vulp::observation::sources::NONE
, vulp::observation::sources::UNKNOWN
} |
|
◆ is_lowercase_alpha()
bool is_lowercase_alpha |
( |
unsigned char |
c | ) |
|
|
inline |
◆ is_printable_ascii()
bool is_printable_ascii |
( |
unsigned char |
c | ) |
|
|
inline |
◆ is_uppercase_alpha()
bool is_uppercase_alpha |
( |
unsigned char |
c | ) |
|
|
inline |
◆ DOWN_BYTES
constexpr unsigned char DOWN_BYTES[] = {0x1B, 0x5B, 0x42} |
|
constexpr |
◆ kMaxKeyBytes
constexpr ssize_t kMaxKeyBytes = 3 |
|
constexpr |
Maximum number of bytes to encode a key.
Definition at line 25 of file Keyboard.h.
◆ kPollingIntervalMS
constexpr int64_t kPollingIntervalMS = 50 |
|
constexpr |
Polling interval in milliseconds.
Definition at line 28 of file Keyboard.h.
◆ LEFT_BYTES
constexpr unsigned char LEFT_BYTES[] = {0x1B, 0x5B, 0x44} |
|
constexpr |
◆ RIGHT_BYTES
constexpr unsigned char RIGHT_BYTES[] = {0x1B, 0x5B, 0x43} |
|
constexpr |
◆ UP_BYTES
constexpr unsigned char UP_BYTES[] = {0x1B, 0x5B, 0x41} |
|
constexpr |