Files
Towards/external/loft/modules/window/include/input.h
T

12 lines
194 B
C
Raw Normal View History

2026-07-18 14:31:15 +02:00
#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;
}
}