opuntiaOS - an operating system targeting x86 and ARMv7
at master 571 B view raw
1/* 2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors. 3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com> 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9#ifndef _KERNEL_DRIVERS_GENERIC_MOUSE_H 10#define _KERNEL_DRIVERS_GENERIC_MOUSE_H 11 12/* The mouse packet should be aligned to 4 bytes */ 13struct mouse_packet { 14 int16_t x_offset; 15 int16_t y_offset; 16 uint16_t button_states; 17 int16_t wheel_data; 18}; 19typedef struct mouse_packet mouse_packet_t; 20 21#endif //_KERNEL_DRIVERS_GENERIC_MOUSE_H