ps2.c (3d861a01093f8eedfac9889746ccafcfd32039b7) | ps2.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d) |
---|---|
1/* 2 * QEMU PS/2 keyboard/mouse emulation 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 368 unchanged lines hidden (view full) --- 377 s->mouse_dx -= dx1; 378 s->mouse_dy -= dy1; 379 s->mouse_dz -= dz1; 380} 381 382static void ps2_mouse_event(DeviceState *dev, QemuConsole *src, 383 InputEvent *evt) 384{ | 1/* 2 * QEMU PS/2 keyboard/mouse emulation 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 368 unchanged lines hidden (view full) --- 377 s->mouse_dx -= dx1; 378 s->mouse_dy -= dy1; 379 s->mouse_dz -= dz1; 380} 381 382static void ps2_mouse_event(DeviceState *dev, QemuConsole *src, 383 InputEvent *evt) 384{ |
385 static const int bmap[INPUT_BUTTON_MAX] = { | 385 static const int bmap[INPUT_BUTTON__MAX] = { |
386 [INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON, 387 [INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON, 388 [INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUTTON, 389 }; 390 PS2MouseState *s = (PS2MouseState *)dev; 391 392 /* check if deltas are recorded when disabled */ 393 if (!(s->mouse_status & MOUSE_STATUS_ENABLED)) --- 414 unchanged lines hidden --- | 386 [INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON, 387 [INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON, 388 [INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUTTON, 389 }; 390 PS2MouseState *s = (PS2MouseState *)dev; 391 392 /* check if deltas are recorded when disabled */ 393 if (!(s->mouse_status & MOUSE_STATUS_ENABLED)) --- 414 unchanged lines hidden --- |