| 1113 | } |
| 1114 | |
| 1115 | bool MessageInput::key_up(int key) |
| 1116 | { |
| 1117 | LogInfo << VAR(config_.mode) << VAR(key); |
| 1118 | |
| 1119 | if (!hwnd_) { |
| 1120 | LogError << VAR(config_.mode) << VAR(config_.with_cursor_pos) << VAR(config_.with_window_pos) << "hwnd_ is nullptr"; |
| 1121 | return false; |
| 1122 | } |
| 1123 | |
| 1124 | HWND target = send_activate(); |
| 1125 | |
| 1126 | LPARAM lParam = make_keyup_lparam(key); |
| 1127 | return send_or_post_w(target, WM_KEYUP, static_cast<WPARAM>(key), lParam); |
| 1128 | } |
| 1129 | |
| 1130 | bool MessageInput::scroll(int dx, int dy) |
| 1131 | { |
nothing calls this directly
no test coverage detected