Mouse malfunction at 3D Gamestudio

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
ZaeNae
Level 1
Level 1
Posts: 8
Joined: Fri Jan 28, 2022 12:32 pm

Mouse malfunction at 3D Gamestudio

Post by ZaeNae »

Somehow the mouse event (left-, right,- and middle clicks) didn't recognized.
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;
}
Post Reply