ghaerr / microwindows

The Nano-X Window System
Other
659 stars 90 forks source link

Adding AquilaOS support #30

Closed thethumbler closed 5 years ago

ghaerr commented 5 years ago

Clean work, thanks! I've used the convention of #if rather than #ifdef internally. That means that your Arch.rules CFLAGS -DUNIX should probably be changed to -DUNIX=1 (not sure if all compilers set =1 when left blank). Also helps to do the same with AQUILA to avoid mixing ifdef/if's. FYI.

If you're going to be using Nuklear, you'll want to add mousewheel support for sure. Simply done by returning an additional signed wheel up/down value as the fourth byte. See drivers/mou_devmice.c or drivers/mou_sdl2.c for details. We currently ignore the value magnitude, just use the sign to set the MWBUTTON_SCROLLUP/DN flag, and the rest is handled internally. You'll also need to update the GetButtonInfo with the two new flags.