mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
WindowServer+LibGUI: Handle mouse wheel deltas in the mouse event stream.
The wheel events will end up in GWidget::mousewheel_event(GMouseEvent&) on the client-side. This patch also implements basic wheel scrolling in GScrollableWidget via this mechanism. :^)
This commit is contained in:
parent
dae8eb6454
commit
dab9901235
13 changed files with 58 additions and 25 deletions
|
@ -74,6 +74,7 @@ struct WSAPI_ServerMessage {
|
|||
MouseMove,
|
||||
MouseDown,
|
||||
MouseUp,
|
||||
MouseWheel,
|
||||
WindowEntered,
|
||||
WindowLeft,
|
||||
KeyDown,
|
||||
|
@ -155,6 +156,7 @@ struct WSAPI_ServerMessage {
|
|||
WSAPI_MouseButton button;
|
||||
unsigned buttons;
|
||||
byte modifiers;
|
||||
int wheel_delta;
|
||||
} mouse;
|
||||
struct {
|
||||
char character;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue