Explorar el Código

Fix compiler warnings

main
PaulStoffregen hace 7 años
padre
commit
6938b46086
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. +4
    -4
      mouse.cpp

+ 4
- 4
mouse.cpp Ver fichero



if(packetSize == 20) { if(packetSize == 20) {
buttons = report[1]; buttons = report[1];
mouseX = ((report[4] & 0x0f) << 8 | (report[3] & 0xff));
mouseY = ((report[5] & 0xff) << 4 | (report[4] >> 4) & 0x0f);
mouseX = ((report[4] & 0x0f) << 8) | ((report[3] & 0xff));
mouseY = ((report[5] & 0xff) << 4) | ((report[4] >> 4) & 0x0f);
wheel = report[6]; wheel = report[6];
} else { } else {
buttons = report[0]; buttons = report[0];
mouseX = ((report[2] & 0x0f) << 8 | (report[1] & 0xff));
mouseY = ((report[3] & 0xff) << 4 | (report[2] >> 4) & 0x0f);
mouseX = ((report[2] & 0x0f) << 8) | ((report[1] & 0xff));
mouseY = ((report[3] & 0xff) << 4) | ((report[2] >> 4) & 0x0f);
wheel = report[4]; wheel = report[4];
} }
mouseEvent = true; mouseEvent = true;

Cargando…
Cancelar
Guardar