From d25bb30da26eefbe92cd1e59f7ee4b936c1afcec Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Fri, 7 Apr 2023 12:31:59 +0200 Subject: Implement support for mouse events --- input.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'input.h') diff --git a/input.h b/input.h index 1487b35..8bea32b 100644 --- a/input.h +++ b/input.h @@ -25,6 +25,10 @@ struct InputStream; struct InputStream* InputStreamCreate(int fd); bool InputStreamKeyPress(struct InputStream* input_stream, unsigned evdev_code, bool pressed); +bool InputStreamMouseMove(struct InputStream* input_stream, int dx, int dy); +bool InputStreamMouseButton(struct InputStream* input_stream, unsigned button, + bool pressed); +bool InputStreamMouseWheel(struct InputStream* input_stream, int delta); bool InputStreamHandsoff(struct InputStream* input_stream); void InputStreamDestroy(struct InputStream* input_stream); -- cgit v1.2.3