commit 0680456

Devine Lu Linvega  ·  2026-01-10 05:01:55 +0000 UTC
parent 3af1098
Fixed issue with controls sticking
2 files changed,  +3, -5
+1, -1
1@@ -37,7 +37,7 @@ pkg_add epoll-shim
2 
3 Then, to build:
4 
5-```makefile
6+```sh
7 cc -DNDEBUG -O2 -g0 -s `pkg-config --cflags --libs x11 epoll-shim` src/uxn11.c -lutil -o bin/uxn11
8 ```
9 
+2, -4
 1@@ -1292,10 +1292,8 @@ emu_run(void)
 2 	while(!dev[0x0f]) {
 3 		if(poll(fds, 3, -1) <= 0)
 4 			continue;
 5-		if(fds[0].revents & POLLIN) {
 6-			while(XPending(emu_dpy))
 7-				emu_event();
 8-		}
 9+		while(XPending(emu_dpy))
10+			emu_event();
11 		if(fds[1].revents & POLLIN) {
12 			read(emu_timer, expirations, sizeof expirations);
13 			screen_update();