Flutter Engine
key_event_handler.cc File Reference
#include "flutter/shell/platform/windows/key_event_handler.h"
#include <windows.h>
#include <iostream>
#include "flutter/shell/platform/common/cpp/json_message_codec.h"

Go to the source code of this file.

Namespaces

 flutter
 

Variables

static constexpr char kChannelName [] = "flutter/keyevent"
 
static constexpr char kKeyCodeKey [] = "keyCode"
 
static constexpr char kScanCodeKey [] = "scanCode"
 
static constexpr char kCharacterCodePointKey [] = "characterCodePoint"
 
static constexpr char kModifiersKey [] = "modifiers"
 
static constexpr char kKeyMapKey [] = "keymap"
 
static constexpr char kTypeKey [] = "type"
 
static constexpr char kWindowsKeyMap [] = "windows"
 
static constexpr char kKeyUp [] = "keyup"
 
static constexpr char kKeyDown [] = "keydown"
 
const int flutter::kShift = 1 << 0
 
const int flutter::kShiftLeft = 1 << 1
 
const int flutter::kShiftRight = 1 << 2
 
const int flutter::kControl = 1 << 3
 
const int flutter::kControlLeft = 1 << 4
 
const int flutter::kControlRight = 1 << 5
 
const int flutter::kAlt = 1 << 6
 
const int flutter::kAltLeft = 1 << 7
 
const int flutter::kAltRight = 1 << 8
 
const int flutter::kWinLeft = 1 << 9
 
const int flutter::kWinRight = 1 << 10
 
const int flutter::kCapsLock = 1 << 11
 
const int flutter::kNumLock = 1 << 12
 
const int flutter::kScrollLock = 1 << 13
 

Variable Documentation

◆ kChannelName

constexpr char kChannelName[] = "flutter/keyevent"
static

Definition at line 13 of file key_event_handler.cc.

◆ kCharacterCodePointKey

constexpr char kCharacterCodePointKey[] = "characterCodePoint"
static

Definition at line 17 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyCodeKey

constexpr char kKeyCodeKey[] = "keyCode"
static

Definition at line 15 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyDown

constexpr char kKeyDown[] = "keydown"
static

Definition at line 24 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyMapKey

constexpr char kKeyMapKey[] = "keymap"
static

Definition at line 19 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyUp

constexpr char kKeyUp[] = "keyup"
static

Definition at line 23 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kModifiersKey

constexpr char kModifiersKey[] = "modifiers"
static

Definition at line 18 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kScanCodeKey

constexpr char kScanCodeKey[] = "scanCode"
static

Definition at line 16 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kTypeKey

constexpr char kTypeKey[] = "type"
static

Definition at line 20 of file key_event_handler.cc.

◆ kWindowsKeyMap

constexpr char kWindowsKeyMap[] = "windows"
static

Definition at line 22 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().