#include <keyboard_key_channel_handler.h>
|
| KeyboardKeyChannelHandler (flutter::BinaryMessenger *messenger) |
|
| ~KeyboardKeyChannelHandler () |
|
void | KeyboardHook (int key, int scancode, int action, char32_t character, bool extended, bool was_down, std::function< void(bool)> callback) |
|
void | SyncModifiersIfNeeded (int modifiers_state) |
|
std::map< uint64_t, uint64_t > | GetPressedState () |
|
Public Member Functions inherited from flutter::KeyboardKeyHandler::KeyboardKeyHandlerDelegate |
virtual void | KeyboardHook (int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback)=0 |
|
virtual void | SyncModifiersIfNeeded (int modifiers_state)=0 |
|
virtual std::map< uint64_t, uint64_t > | GetPressedState ()=0 |
|
virtual | ~KeyboardKeyHandlerDelegate () |
|
◆ KeyboardKeyChannelHandler()
◆ ~KeyboardKeyChannelHandler()
flutter::KeyboardKeyChannelHandler::~KeyboardKeyChannelHandler |
( |
| ) |
|
|
default |
◆ GetPressedState()
std::map< uint64_t, uint64_t > flutter::KeyboardKeyChannelHandler::GetPressedState |
( |
| ) |
|
|
virtual |
◆ KeyboardHook()
void flutter::KeyboardKeyChannelHandler::KeyboardHook |
( |
int |
key, |
|
|
int |
scancode, |
|
|
int |
action, |
|
|
char32_t |
character, |
|
|
bool |
extended, |
|
|
bool |
was_down, |
|
|
std::function< void(bool)> |
callback |
|
) |
| |
|
virtual |
Implements flutter::KeyboardKeyHandler::KeyboardKeyHandlerDelegate.
Definition at line 124 of file keyboard_key_channel_handler.cc.
131 {
132
133
134 rapidjson::Document
event(rapidjson::kObjectType);
135 auto& allocator = event.GetAllocator();
138 allocator);
140 event.AddMember(
kKeyMapKey, kWindowsKeyMap, allocator);
141 event.AddMember(
kModifiersKey, GetModsForKeyState(), allocator);
142
144 case WM_SYSKEYDOWN:
145 case WM_KEYDOWN:
147 break;
148 case WM_SYSKEYUP:
149 case WM_KEYUP:
151 break;
152 default:
155 return;
156 }
158 size_t reply_size) {
160 reply, reply_size);
161 bool handled = decoded ? (*decoded)[kHandledKey].GetBool() : false;
163 });
164}
std::unique_ptr< T > DecodeMessage(const uint8_t *binary_message, const size_t message_size) const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_LOG(severity)
static constexpr char kScanCodeKey[]
static constexpr char kKeyMapKey[]
static constexpr char kKeyDown[]
static constexpr char kKeyUp[]
static constexpr char kModifiersKey[]
static constexpr char kKeyCodeKey[]
constexpr char kTypeKey[]
uint32_t UndeadChar(uint32_t ch)
◆ SyncModifiersIfNeeded()
void flutter::KeyboardKeyChannelHandler::SyncModifiersIfNeeded |
( |
int |
modifiers_state | ) |
|
|
virtual |
The documentation for this class was generated from the following files: