Commit Graph

55 Commits

Author SHA1 Message Date
OBattler
0157520b76 PS/2 mouse: fix the "no poll" condition. 2025-05-13 17:05:13 +02:00
Cacodemon345
00c97dac1c Add "Five + 2 Wheels" option for horizontal wheel reporting 2025-03-20 00:58:10 +06:00
OBattler
2c197000ea Removed the legacy #defines in device.h. 2025-02-14 07:39:21 +01:00
OBattler
4806519388 The device_t available/poll union is now gone, mouse poll is now set using mouse_set_poll(), and mouse_curr is now also gone. 2025-02-13 00:23:35 +01:00
Jasmine Iwanek
d5d1d5c449 More cleanups to device structs 2025-02-08 01:28:25 -05:00
Jasmine Iwanek
81b8038bc5 Clean up .available & .poll 2025-02-01 03:38:52 -05:00
OBattler
55b091fb58 Assorted string fixes, mostly for consistency. 2024-11-10 02:23:21 +01:00
OBattler
cd03b6a31c Packard Bell machines: PS/2 mouse commands now suspend dynamic recompilation until the response byte is read, fixes #552. 2024-01-25 21:47:15 +01:00
OBattler
c1613776ce Fixed the wheel inversion on the PS/2 mouse. 2023-08-25 05:58:04 +02:00
OBattler
87c5c59646 Some copyright header fixes. 2023-08-14 21:13:37 +02:00
OBattler
0ac3bb1620 More mouse fixes. 2023-08-12 17:56:44 +02:00
OBattler
24ff4a2498 Make sure bit 3 of the first PS/2 mouse packet is always set. 2023-08-12 12:10:35 +02:00
OBattler
6127c4572d Fixed the broken PS/2 mouse. 2023-08-11 22:52:11 +02:00
OBattler
2391c11260 More clean-ups and mouse fixes. 2023-08-11 22:29:53 +02:00
OBattler
782015a923 More mouse and PIC fixes and the mouse now takes of the ration between guest resolution and actual render area size, multiplied by the DPI, when returning coordinate deltas, also unified the delta return function across the various emulated mice. 2023-08-11 04:45:32 +02:00
OBattler
c695cb8ded Completely reworked mouse handling - should now be smoother due to there no longer being a multi-layered game of telephone going on with all the various interim coordinate counters, also rewritten the serial mouse emulation ground ground up. 2023-08-07 18:49:58 +02:00
Jasmine Iwanek
21adfd4d50 Next round of sonarlint cleanups 2023-06-26 18:28:13 -04:00
Jasmine Iwanek
6c1e4a8e2c Some code smell fixes from sonarlint 2023-05-15 19:25:56 -04:00
OBattler
194918b86a Some minor keyboard and keyboard controller fixes and three-phased the keyboard and PS/2 mouse BAT. 2023-05-16 00:20:09 +02:00
OBattler
78a897f07a Some minor fixes, the PS/2 mouse command F0h (set remote mode) is now implemented, the PS/2 mouse command F3h (set sample rate) now actually changes the host mouse polling rate, and the Intel SIO IB and ZB now forcibly initialize a keyboard and mouse IRQ latch if the board has a PS/2 keyboard controller, to simulate the presence of a latch external to the chip. 2023-04-26 01:42:23 +02:00
OBattler
3b54cb085e Some minor bugfixes. 2023-04-24 02:47:17 +02:00
OBattler
0458034cbf Some clean-ups. 2023-04-20 14:28:37 +02:00
OBattler
19d155cdd7 Keyboard controller file split and assorted clean-ups and fixes 2023-04-19 23:34:32 +02:00
OBattler
7b76b2af27 The PS/2 mouse poll is now also a state machine and fixed output port writes on AMI PS/2 keyboard controllers - fixes PS/2 mouse in Windows 3.1 on some machines. 2023-04-09 04:36:28 +02:00
OBattler
0d7997f802 Current state of the keyboard and mouse work. 2023-04-05 22:13:16 +02:00
OBattler
aab8eb809d More keyboard controller improvements - fixes IBM AT boot, CTRL and ALT getting stuck on pressing CTRL+ALT+ESC on Acer BIOS'es, Norton Commander behaving strangely after pressing ALT+Print Screen, and also moved PS/2 mouse command responses to their own queue to simulate the fact that on real hardware, PS/2 mouse commands, like keyboard commands, bypass the FIFO. 2023-04-02 04:17:33 +02:00
Cacodemon345
0f36ad9f04 Merge remote-tracking branch 'upstream/master' into qt-wacom-serial 2023-02-15 11:12:25 +06:00
Joakim L. Gilje
fa9e05a317 add command 0xea - set stream mode 2023-02-08 22:11:22 +01:00
Cacodemon345
17d4e4a7e2 Merge branch 'master' into qt-wacom-serial 2023-02-07 17:04:25 +06:00
Jasmine Iwanek
a40630ba63 Even more tabs to spaces 2023-01-07 14:09:51 -05:00
Cacodemon345
96f7b7aa14 Add Wacom SD-510C tablet emulation 2023-01-03 16:47:20 +06:00
Jasmine Iwanek
3fe4f75108 A bit more clang-format 2022-11-19 11:53:07 -05:00
Jasmine Iwanek
bd75bc141a Header cleanups
Tabs to spaces
Consistency
2022-11-13 21:15:47 -05:00
OBattler
9ec317d8e6 Fixed two warnings. 2022-10-30 16:44:31 +01:00
Cacodemon345
66f432efe7 mouse_ps2: Unify movement packet reporting mechanisms 2022-10-29 22:16:03 +06:00
Cacodemon345
b388cb552f Add option for 5-button PS/2 mouse 2022-10-28 23:51:38 +06:00
OBattler
e5268075fb Fixed mouse button statuses in PS/2 mouse command E9. 2022-10-28 17:30:38 +02:00
Jasmine Iwanek
9a3cabbe85 clang-format in src/device/ 2022-09-18 17:19:21 -04:00
Jasmine Iwanek
50ef360282 src/device 2022-04-12 17:26:06 -04:00
Jasmine Iwanek
a7edaf0608 src/device 2022-03-13 09:28:28 -04:00
Jasmine Iwanek
801f81fbda clean up device_config_t formatting 2022-02-26 23:31:28 -05:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
OBattler
6f2b93923c A lot of fixes - everything now seems to work properly. 2022-02-03 03:10:06 +01:00
Jess Lovelace
f18615ae87 refactored device_t and all declarations 2022-02-02 16:31:22 -05:00
OBattler
758d8acb63 Temporarily reverted all keyboard changes. 2021-11-13 22:57:01 +01:00
OBattler
583f84a8b4 And back. 2021-08-20 17:00:30 +02:00
OBattler
19c374c046 Temporary changes to make merger possible. 2021-08-20 16:58:27 +02:00
OBattler
4e8600e3b1 PS/2 mouse command F6. 2021-08-20 16:56:17 +02:00
OBattler
4f6df76f10 Revert "Revert "Merge branch 'feature/machine_and_kb' into master""
This reverts commit f2cd3756dd.
2021-07-04 17:40:39 +02:00
Daniel Gurney
f2cd3756dd Revert "Merge branch 'feature/machine_and_kb' into master"
This reverts commit 6604a29d7e, reversing
changes made to 1d7fca0abd.
2021-07-04 18:22:52 +03:00