Commit Graph

376 Commits

Author SHA1 Message Date
OBattler
4471849891 The keyboard now is now also a state machine. 2023-04-09 00:59:10 +02:00
OBattler
d4b57298ad Fixed the keyboard controller reset state, fixes Xi8088. 2023-04-08 03:11:53 +02:00
OBattler
c786eb0924 Fixed input port intialization, fixes the logo on the Epson Action PC. 2023-04-08 01:42:09 +02:00
OBattler
289962319f Rewritten the PS/2 poll (without the password security state, that is yet to be done) and enabled the PS/2 KBC IRQ latch on all PCI machines as well (it is present at the very least on Intel SIO and PIIX), fixes Windows for Workgroups 3.11 input, and reduced mouse polling to 255 Hz (the maximums supported by PS/2 mice). 2023-04-08 00:40:57 +02:00
OBattler
1c8fd2c7fc Rewritten the AT KBC polling, PS/2 is coming soon. 2023-04-07 23:36:02 +02:00
OBattler
9ea3014c59 The keyboard controller now correctly processes IBF even if OBF is set, fixes AMIBIOS 6.x machines such as the Supermicro P6SBA. 2023-04-07 15:23:09 +02:00
OBattler
c4a0d77623 Continued keyboard controller work - the controller part of the poll is now a state machine and the PS/2 MCA IRQ latch (cleared on port 0x60 read) is back - fixes #3238. 2023-04-07 00:52:26 +02:00
OBattler
c2499f7a37 Fixed a compile-breaking mistake. 2023-04-05 22:14:48 +02:00
OBattler
0d7997f802 Current state of the keyboard and mouse work. 2023-04-05 22:13:16 +02:00
OBattler
a41935301b Process command D1 (write output port) instantly, required for Windows 95 to work correctly on some chipsets such as SiS 50x. 2023-04-02 23:21:20 +02:00
OBattler
1c2100da5a Turns out reading always the same value on port 60h is in fact correct. 2023-04-02 23:00:14 +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
OBattler
21d31bb839 More AT / PS/2 keyboard controller bugfixes - implemented AMI command A5h (get extended controller RAM), moved command byte to the correct memory byte 0x20, fixed the IBM AT ACh command (diagnostic dump), increased keyboard controller queue to 64 bytes (to accomodate the ACh command), and made port 60h return 0xFF if OBF is clear (fixes the mess on AMI BIOS'es, and makes pressing INS actually work to get those BIOS'es into debug and CMOS bypass mode). 2023-04-01 01:58:38 +02:00
OBattler
542f8477e7 Fully cleaned up the AT keyboard controller add data mess. 2023-03-30 23:50:14 +02:00
OBattler
1cf4f95836 The host mouse is now polled at 3600 Hz (the individual guest mouse types then run at their own rates), making the mouse consideraly smoother. 2023-03-30 01:39:00 +02:00
OBattler
f4f9926004 AT / PS/2 keyboard controller status byte is no longer updated when bytes are added to the keyboard or mouse FIFO, fixes loss of input after some time of PS/2 mouse movement. 2023-03-29 23:15:53 +02:00
Cacodemon345
9b3626e88c wacom: Fix settings reporting 2023-03-04 12:24:35 +06:00
Cacodemon345
ff0a39bbaa Add and enable Wacom ArtPad emulation 2023-03-04 11:35:10 +06:00
Cacodemon345
90826277aa mouse_wacom_tablet: Make data a FIFO
Windows 3.x Wacom handwriting mode now behaves correctly
2023-03-03 22:37:59 +06:00
Cacodemon345
85ddf5db3a Merge remote-tracking branch 'origin/master' into qt-wacom-serial 2023-03-02 23:31:20 +06:00
Cacodemon345
32076a16ac mouse_wacom_tablet: Point mode is disabled when suppressed mode is enabled 2023-03-02 16:47:42 +06:00
Cacodemon345
9d1175d1d8 Prepare for ArtPad emulation 2023-03-02 16:45:47 +06:00
Cacodemon345
c68b0a416a mouse_wacom_tablet: Resets now set the mode properly 2023-03-02 14:05:38 +06:00
Jasmine Iwanek
610401de7a Yet more clang-formatting 2023-02-28 23:53:57 -05:00
Cacodemon345
f9cd6c9b5f Set default tablet tool to Pen 2023-02-18 01:16:16 +06:00
Cacodemon345
cdcd5327d6 Merge remote-tracking branch 'upstream/master' into qt-wacom-serial 2023-02-17 14:26:15 +06:00
Cacodemon345
7f66f8334e mouse_wacom_tablet: Always transmit coordinates when requested in remote mode 2023-02-17 11:36:13 +06:00
Cacodemon345
29d7a7f265 mouse_wacom_tablet: Reset "always_report" to 0 as well
Fixes Windows 95 drivers
2023-02-17 11:04:24 +06:00
Cacodemon345
a96f40e5ef mouse_wacom_tablet: Change to snprintf for ID transmission 2023-02-17 01:48:29 +06:00
OBattler
7a0e52720d Merge branch 'master' of https://github.com/86Box/86Box 2023-02-16 20:10:16 +01:00
OBattler
b2f324262d Fixed more serial receiver FIFO bugs. 2023-02-16 20:10:05 +01:00
Miran Grča
6b6632e140 Merge pull request #3111 from Cacodemon345/qt-compile-fix
serial_passthrough: Allow configuration of named pipe parameter
2023-02-16 18:16:07 +01:00
Cacodemon345
3050dae395 serial_passthrough: Allow configuration of named pipe parameter 2023-02-16 17:27:04 +06:00
Cacodemon345
efaca1b106 wacom: Get rid of ID transmission hacks 2023-02-16 10:25:05 +06:00
Cacodemon345
6d0f4fc723 Merge remote-tracking branch 'upstream/master' into qt-wacom-serial 2023-02-16 10:24:28 +06:00
OBattler
f6c8080bdc Fixed MSR writability, fixes Error D on the IBM PCjr. 2023-02-16 02:43:06 +01:00
OBattler
3d480a6ffc A small fix to the serial receiver FIFO - fixes error 1101 on IBM PS/2 Models 70 and 80. 2023-02-16 00:15:04 +01:00
Cacodemon345
f4d985b3da serial: Fix compilation with Qt 2023-02-15 21:37:20 +06:00
OBattler
9d59f72f0b Rewrote the serial port receiver FIFO. 2023-02-15 16:00:46 +01:00
OBattler
0ed4548aeb Fixed warnings in device/serial_passthrough.c. 2023-02-15 14:32:47 +01:00
Cacodemon345
0f36ad9f04 Merge remote-tracking branch 'upstream/master' into qt-wacom-serial 2023-02-15 11:12:25 +06:00
Jasmine Iwanek
f643391975 Serial Passthrough 2023-02-14 20:53:59 -05: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
a7236a9022 Make dual video card code use array 2023-02-06 07:29:18 -05:00
luennix
4085e4c928 PR for 86Box 2023-01-09 16:31:36 +03:00
Jasmine Iwanek
1860700eab Fix some small issues 2023-01-07 17:02:23 -05:00
Jasmine Iwanek
a40630ba63 Even more tabs to spaces 2023-01-07 14:09:51 -05:00
Cacodemon345
3884e5874b Merge remote-tracking branch 'upstream/master' into qt-wacom-serial 2023-01-07 11:38:25 +06:00
Cacodemon345
a91015fe04 wacom: Check suppressed increment first 2023-01-07 00:04:48 +06:00