From b11d085f98465aae2b5a861066b963fce5aeaae3 Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 14 Apr 2022 00:00:19 +0200 Subject: add wheel support to win16 mouse driver --- int33.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'int33.h') diff --git a/int33.h b/int33.h index bb975a3..7cd7aa5 100644 --- a/int33.h +++ b/int33.h @@ -248,4 +248,15 @@ static bool int33_get_max_coordinates(int16_t *x, int16_t *y); __value [al] \ __modify [ax bx cx dx] +static uint16_t int33_get_capabilities(void); +#pragma aux int33_get_capabilities = \ + "mov ax, 0x11" \ + "int 0x33" \ + "cmp ax, 0x574D" /* Compare against the INT33_WHEEL_API_MAGIC number. */ \ + "je end" \ + "xor cx, cx" /* If magic not correct, assume not supported and return 0. */ \ + "end:" \ + __value [cx] \ + __modify [ax bx cx] + #endif /* INT33_H */ -- cgit v1.2.3