src/video/riscos/SDL_riscosevents.c
changeset 658 e71b7108d2d7
parent 630 550bccdf04bd
child 733 9557ac1857a3
equal deleted inserted replaced
657:714053f573e7 658:e71b7108d2d7
   334 
   334 
   335           if (last_buttons != regs.r[2])
   335           if (last_buttons != regs.r[2])
   336           {
   336           {
   337              int changed = last_buttons ^ regs.r[2];
   337              int changed = last_buttons ^ regs.r[2];
   338              last_buttons = regs.r[2];
   338              last_buttons = regs.r[2];
   339              if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, x, y);
   339              if (changed & 4) SDL_PrivateMouseButton((last_buttons & 4) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_LEFT, 0, 0);
   340              if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, x, y);
   340              if (changed & 2) SDL_PrivateMouseButton((last_buttons & 2) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_MIDDLE, 0, 0);
   341              if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, x, y);
   341              if (changed & 1) SDL_PrivateMouseButton((last_buttons & 1) ? SDL_PRESSED : SDL_RELEASED, SDL_BUTTON_RIGHT, 0, 0);
   342           }
   342           }
   343        }
   343        }
   344     }
   344     }
   345 }
   345 }
   346 
   346