mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Fixed a compile bug
This commit is contained in:
parent
7cc8b85f6e
commit
3af4f36127
@ -1150,8 +1150,8 @@ poll_raw_mice()
|
|||||||
}
|
}
|
||||||
const input_event *events = (const input_event *)(inf._io_buffer.c_str());
|
const input_event *events = (const input_event *)(inf._io_buffer.c_str());
|
||||||
GraphicsWindowInputDevice &dev = _input_devices[inf._input_device_index];
|
GraphicsWindowInputDevice &dev = _input_devices[inf._input_device_index];
|
||||||
int x = _input_devices[i].get_raw_pointer().get_x();
|
int x = dev.get_raw_pointer().get_x();
|
||||||
int y = _input_devices[i].get_raw_pointer().get_y();
|
int y = dev.get_raw_pointer().get_y();
|
||||||
for (int i=0; i<nevents; i++) {
|
for (int i=0; i<nevents; i++) {
|
||||||
if (events[i].type == EV_REL) {
|
if (events[i].type == EV_REL) {
|
||||||
if (events[i].code == REL_X) x += events[i].value;
|
if (events[i].code == REL_X) x += events[i].value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user