From 2bc059dacb3baa238d24f1a4ce850ba9085a1bb5 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:09:06 +0200 Subject: [PATCH] Mon 14 Oct 23:06:38 CEST 2024 --- kernel/mouse.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 kernel/mouse.h diff --git a/kernel/mouse.h b/kernel/mouse.h new file mode 100644 index 0000000..7981aa4 --- /dev/null +++ b/kernel/mouse.h @@ -0,0 +1,21 @@ +/* +Copyright (C) 2016-2019 The University of Notre Dame +This software is distributed under the GNU General Public License. +See the file LICENSE for details. +*/ + +#ifndef MOUSE_H +#define MOUSE_H + +#include "kernel/types.h" + +struct mouse_state { + uint8_t buttons; + uint16_t x; + uint16_t y; +}; + +void mouse_read( struct mouse_state *s ); +void mouse_init(); + +#endif