#include <key_event_handler.h>
|
| KeyEventHandler (flutter::BinaryMessenger *messenger) |
|
virtual | ~KeyEventHandler () |
|
void | KeyboardHook (GLFWwindow *window, int key, int scancode, int action, int mods) override |
|
void | CharHook (GLFWwindow *window, unsigned int code_point) override |
|
Public Member Functions inherited from flutter::KeyboardHookHandler |
virtual | ~KeyboardHookHandler ()=default |
|
virtual void | KeyboardHook (GLFWwindow *window, int key, int scancode, int action, int mods)=0 |
|
virtual void | CharHook (GLFWwindow *window, unsigned int code_point)=0 |
|
Definition at line 21 of file key_event_handler.h.
◆ KeyEventHandler()
Definition at line 104 of file key_event_handler.cc.
105 : channel_(
107 messenger,
static const JsonMessageCodec & GetInstance()
static constexpr char kChannelName[]
◆ ~KeyEventHandler()
flutter::KeyEventHandler::~KeyEventHandler |
( |
| ) |
|
|
virtualdefault |
◆ CharHook()
void flutter::KeyEventHandler::CharHook |
( |
GLFWwindow * |
window, |
|
|
unsigned int |
code_point |
|
) |
| |
|
overridevirtual |
◆ KeyboardHook()
void flutter::KeyEventHandler::KeyboardHook |
( |
GLFWwindow * |
window, |
|
|
int |
key, |
|
|
int |
scancode, |
|
|
int |
action, |
|
|
int |
mods |
|
) |
| |
|
overridevirtual |
Implements flutter::KeyboardHookHandler.
Definition at line 115 of file key_event_handler.cc.
119 {
120
121
122
123 rapidjson::Document
event(rapidjson::kObjectType);
124 auto& allocator = event.GetAllocator();
130
131 uint32_t unicodeInt;
135 }
136
138 case GLFW_PRESS:
139 case GLFW_REPEAT:
141 break;
142 case GLFW_RELEASE:
144 break;
145 default:
146 std::cerr <<
"Unknown key event action: " <<
action << std::endl;
147 return;
148 }
149 channel_->Send(
event);
150}
static constexpr char kScanCodeKey[]
static constexpr char kKeyMapKey[]
static constexpr char kToolkitKey[]
static constexpr char kGLFWKey[]
static constexpr char kKeyDown[]
static constexpr char kLinuxKeyMap[]
static constexpr char kKeyUp[]
static constexpr char kModifiersKey[]
static constexpr char kUnicodeScalarValues[]
static constexpr char kKeyCodeKey[]
constexpr char kTypeKey[]
The documentation for this class was generated from the following files: