wine: 9.22
OS: Manjaro 24.2.1 Yonada
Kernel: x86_64 Linux 6.11.11-1-MANJARO
GPU: NVIDIA GeForce GTX 1650 with Max-Q Design
Emulated: Windows 7 (64-bit)
Example code:
Code: Select all
function mouse_event(code) {
if (code == 280) {
printf("left key pressed!");
}
if (code == 281) {
printf("right key pressed!");
}
if (code == 282) {
printf("middle key pressed!");
}
}
function main() {
level_load(NULL);
wait(2);
on_mouse_left = mouse_event;
on_mouse_right = mouse_event;
on_mouse_middle = mouse_event;
}