|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Definitions for inputtino keyboard input handling. More...
#include <boost/locale.hpp>#include <inputtino/input.hpp>#include <libevdev/libevdev.h>#include "inputtino_common.h"#include "inputtino_keyboard.h"#include "src/config.h"#include "src/logging.h"#include "src/platform/common.h"#include "src/utility.h"Functions | |
| std::string | platf::keyboard::to_hex (const std::basic_string< char32_t > &str) |
| void | platf::keyboard::unicode (input_raw_t *raw, char *utf8, int size) |
| Submit UTF-8 text input to the keyboard backend. | |
| void | platf::keyboard::update (input_raw_t *raw, uint16_t modcode, bool release, uint8_t flags) |
| Apply the supplied state update to the platform backend. | |
Definitions for inputtino keyboard input handling.
| std::string platf::keyboard::to_hex | ( | const std::basic_string< char32_t > & | str | ) |
Takes an UTF-32 encoded string and returns a hex string representation of the bytes (uppercase)
ex: ['👱'] = "1F471" // see UTF encoding at https://www.compart.com/en/unicode/U+1F471
adapted from: https://stackoverflow.com/a/7639754
| str | UTF-8 text to encode as hexadecimal. |
| void platf::keyboard::unicode | ( | input_raw_t * | raw, |
| char * | utf8, | ||
| int | size ) |
Submit UTF-8 text input to the keyboard backend.
| raw | Platform-specific input backend state. |
| utf8 | UTF-8 text submitted by the client. |
| size | Number of bytes or elements requested. |
| void platf::keyboard::update | ( | input_raw_t * | raw, |
| uint16_t | modcode, | ||
| bool | release, | ||
| uint8_t | flags ) |
Apply the supplied state update to the platform backend.
| raw | Platform-specific input backend state. |
| modcode | Modifier key code to update. |
| release | Whether the key or button event is a release. |
| flags | Bit flags that modify the requested operation. |