uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 70edfce2060b9f6558c0f5ebc50636e16f07e5bd
parent 3276b370e888c4cc349e02487350375d42d650fd
Author: neauoire <aliceffekt@gmail.com>
Date:   Sat, 29 May 2021 15:05:43 -0700

Unset mouse wheel after eval

Diffstat:
Msrc/uxnemu.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -162,9 +162,7 @@ domouse(SDL_Event *event) switch(event->type) { case SDL_MOUSEBUTTONDOWN: devmouse->dat[6] |= flag; - if(flag == 0x10 && (devmouse->dat[6] & 0x01)) - if(flag == 0x01 && (devmouse->dat[6] & 0x10)) - break; + break; case SDL_MOUSEBUTTONUP: devmouse->dat[6] &= (~flag); break; @@ -353,6 +351,7 @@ start(Uxn *u) case SDL_MOUSEWHEEL: devmouse->dat[7] = event.wheel.y; evaluxn(u, mempeek16(devmouse->dat, 0)); + devmouse->dat[7] = 0; break; case SDL_MOUSEBUTTONUP: case SDL_MOUSEBUTTONDOWN: