5#ifndef MOLYBDEN_INPUT_EVENTS_HPP
6#define MOLYBDEN_INPUT_EVENTS_HPP
8#include "molybden/ui/geometry.hpp"
152 kKeyCodeBrowserForward,
153 kKeyCodeBrowserRefresh,
155 kKeyCodeBrowserSearch,
156 kKeyCodeBrowserFavorites,
161 kKeyCodeMediaNextTrack,
162 kKeyCodeMediaPrevTrack,
164 kKeyCodeMediaPlayPause,
166 kKeyCodeLaunchMediaSelect,
193 kKeyCodeDbeAlphanumeric,
199enum class KeyLocation {
259enum class MouseButton {
272enum class ScrollType {
A common interface that all keyboard events must extend.
Definition input_events.hpp:319
KeyCode code
The code of the key.
Definition input_events.hpp:327
KeyLocation location
The location of the key on the keyboard.
Definition input_events.hpp:337
KeyModifiers modifiers
The keyboard modifiers applied.
Definition input_events.hpp:332
The modifiers for the keyboard and mouse events.
Definition input_events.hpp:229
bool alt_graph_down
Indicates whether the Alt Graph/Right key is pressed.
Definition input_events.hpp:238
bool shift_down
Indicates whether the Shift key is pressed.
Definition input_events.hpp:243
bool control_down
Indicates whether the Ctrl key is pressed.
Definition input_events.hpp:248
bool alt_down
Indicates whether the Alt key is pressed.
Definition input_events.hpp:233
bool meta_down
Indicates whether the Meta key is pressed.
Definition input_events.hpp:253
An event indicating that a keyboard key has been pressed.
Definition input_events.hpp:343
char key_char
The character corresponding to the pressed key or 0 when a keyboard modifier such as Shift,...
Definition input_events.hpp:354
An event indicating that a keyboard key has been released.
Definition input_events.hpp:377
An event indicating that a keyboard character key has been typed.
Definition input_events.hpp:360
char key_char
The character corresponding to the pressed key or 0 when a keyboard modifier such as Shift,...
Definition input_events.hpp:371
An event indicating that the mouse has been dragged.
Definition input_events.hpp:403
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:418
MouseButton mouse_button
The button that is pressed during the drag.
Definition input_events.hpp:413
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:423
An event indicating that the mouse has been moved over the web page.
Definition input_events.hpp:543
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:559
MouseButton mouse_button
The pressed mouse button.
Definition input_events.hpp:549
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:554
A common interface that all mouse events must extend.
Definition input_events.hpp:384
Point location_on_screen
The mouse position on the screen where the browser view is located.
Definition input_events.hpp:397
Point location
The mouse position inside the browser view.
Definition input_events.hpp:392
An event indicating that the mouse has been moved out of the web page.
Definition input_events.hpp:565
MouseButton mouse_button
The pressed mouse button.
Definition input_events.hpp:571
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:581
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:576
The modifiers for the mouse events.
Definition input_events.hpp:289
bool secondary_button_down
Indicates whether the secondary mouse button is pressed.
Definition input_events.hpp:303
bool forward_button_down
Indicates whether the forward button is pressed.
Definition input_events.hpp:313
bool back_button_down
Indicates whether the back button is pressed.
Definition input_events.hpp:308
bool primary_button_down
Indicates whether the primary mouse button is pressed.
Definition input_events.hpp:293
bool middle_button_down
Indicates whether the middle mouse button is pressed.
Definition input_events.hpp:298
An event indicating that the mouse has been moved.
Definition input_events.hpp:429
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:438
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:443
An event indicating that the mouse button has been pressed.
Definition input_events.hpp:481
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:501
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:496
MouseButton mouse_button
The pressed mouse button.
Definition input_events.hpp:491
uint32_t click_count
The count of consecutive clicks that happened in a short amount of time.
Definition input_events.hpp:506
An event indicating that the mouse button has been released.
Definition input_events.hpp:512
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:527
MouseModifiers mouse_modifiers
The mouse modifiers applied.
Definition input_events.hpp:532
MouseButton mouse_button
The released mouse button.
Definition input_events.hpp:522
uint32_t click_count
The count of consecutive clicks that happened in a short amount of time.
Definition input_events.hpp:537
An event indicating that the mouse wheel button has been rotated.
Definition input_events.hpp:449
float delta_x
The amount of units to scroll horizontally.
Definition input_events.hpp:470
ScrollType scroll_type
The scroll type of the event.
Definition input_events.hpp:460
float delta_y
The amount of units to scroll horizontally.
Definition input_events.hpp:475
KeyModifiers key_modifiers
The keyboard modifiers applied.
Definition input_events.hpp:465
A pair of numbers that in general are used to define coordinates in the two-dimensional space.
Definition geometry.hpp:16