Serenity Operating System
at master 27 lines 482 B view raw
1/* 2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <AK/Types.h> 10 11struct MousePacket { 12 int x { 0 }; 13 int y { 0 }; 14 int z { 0 }; 15 int w { 0 }; 16 17 enum Button { 18 LeftButton = 0x01, 19 RightButton = 0x02, 20 MiddleButton = 0x04, 21 BackwardButton = 0x08, 22 ForwardButton = 0x10, 23 }; 24 25 unsigned char buttons { 0 }; 26 bool is_relative { true }; 27};