Files
Martin Slachta a04f0dc262 initial
2026-07-18 14:31:15 +02:00

12 lines
194 B
C

#include "event.h"
inline float get_scroll_y(const ButtonEvent *pEvent) {
if(pEvent->button == 4) {
return 1.0f;
} else if(pEvent->button == 5) {
return -1.0f;
} else {
return 0;
}
}