Commit Graph

353 Commits

Author SHA1 Message Date
horkthane
3a8b89af63 Assorted Joystick fixes
Implemented use of DirectInput sliders.  They were previously lumped in with axis and then not read or used at all.

Lots of use of joystick_type == 7 or joystick_type != 7 to detect if the joystick_type was none.  Changed this to a define.

The text to enumerate the types of joysticks was contained in a numbered LPARAM sheet.  Switched to using the name listed in the joystick struct.

Joysticks with more than 32 buttons would overflow the plat_joystick_state button array.  Added overflow checks.

Added a 4 axis 4 button joystick type that Win98 can pick up as a generic 4 axis 4 button controller.
2020-01-16 19:23:54 -05:00
David Hrdlička
a575bd7e8b fix more issues reported by coverity 2020-01-15 18:48:22 +01:00
OBattler
e44e60c660 Fixed the fourth batch of problems. 2020-01-15 05:24:33 +01:00
OBattler
932ad5595a Fixed the third batch of problems. 2020-01-15 04:58:28 +01:00
OBattler
f3317c9d95 Fixed another potential overrun in the Discord support code. 2020-01-15 02:24:12 +01:00
OBattler
f5794eba11 Fixed code resulting in potentially non-NULL-terminated strings in the Discord support code. 2020-01-15 02:19:38 +01:00
OBattler
cdac8c1c11 Fixed win/win.c to not NULL-check that which is not NULL. 2020-01-15 02:10:52 +01:00
OBattler
9347986ebe Fixed the dynamic DLL load code to use the correct API call to free the library. 2020-01-15 01:10:41 +01:00
OBattler
171cc75b1e Fixed another potential overrun in win/win_settings.c. 2020-01-15 01:07:06 +01:00
OBattler
8928ef3f66 Fixed an overrun in win/win_ui.c, a few newly introduced bugs, and a warning in the MPU-401 code. 2020-01-15 01:03:54 +01:00
OBattler
a39bb1db2b Fixed another resource leak in win/win.c. 2020-01-15 00:41:02 +01:00
OBattler
2b5425de79 Removed a block of dead code from win/win_settings.c. 2020-01-15 00:38:29 +01:00
OBattler
be041ae94d Removed some useless code (including a dead code block) in the 86F image creation code. 2020-01-15 00:30:01 +01:00
OBattler
93695b15b3 Fixed another potential overrun in win/win_settings.c. 2020-01-14 23:07:10 +01:00
OBattler
79a10c06b0 Fixed an unintentional integer overflow in win/win_settings.c. 2020-01-14 22:26:22 +01:00
OBattler
2d5a8dc49c Fixed a resource leak in win/win.c. 2020-01-14 22:23:56 +01:00
OBattler
b9f3fdc548 Removed a redundant if block from win/win_ui.c. 2020-01-14 22:21:24 +01:00
OBattler
e733ac2cf8 Doubled the size of fd_file_name in win/win_new_floppy.c, fixes array overrun in zip_load(). 2020-01-14 22:16:54 +01:00
OBattler
cce388cee9 Added a anity check to the Discord support code. 2020-01-14 20:14:08 +01:00
OBattler
da82e6a5eb Finished the VIA machine. 2020-01-14 02:14:39 +01:00
Melissa Goad
426bf8c46e Fix the name of the VT82C586B southbridge 2020-01-13 18:50:12 -06:00
Melissa Goad
aa73f2215f Preliminary port of PCem's FIC VA-503P motherboard 2020-01-13 18:50:09 -06:00
OBattler
52000fef8c Merge pull request #535 from 86Box/feature/midi_in
Feature/midi in
2020-01-12 18:57:44 +01:00
Melissa Goad
fa6adf3b90 Make it work for the old dynarec too 2020-01-12 10:10:13 -06:00
Melissa Goad
391e71c236 Initial SMM (System Management Mode) emulation 2020-01-12 01:04:05 -06:00
Altheos
d0a8b1211a Fix wrong 86Box.rc 2020-01-10 12:22:49 +01:00
Altheos
3bdec705e5 GUS soundcard improvements :
IO address flexibility
256kb, 512kb or 1Mb total memory variant
2020-01-08 18:26:24 +01:00
TC1995
e8dd8c3774 Fixed midi input code. Currently only MPU401 (standalone) and SB cards have MIDI Input capabilities, es1371 and GUS will be done for a later time. 2020-01-02 18:19:22 +01:00
TC1995
9562a20a63 Initial commit of MIDI IN. 2020-01-01 20:20:16 +01:00
OBattler
51b06be28c Removed DOSBox OPL code, and made NukedOPL, the CD-ROM image code (incl. former cdrom_dosbox.cpp/h), and Raw Input mouse code C instead of C++, and fixed OPL2 emulation with NukedOPL. 2019-12-21 20:06:34 +01:00
tiseno100
9e1100ec3d Fix the Ambra's not appearing for the old dynarec. Added few 286 boards
Added a few 286 boards:
- Unknown Phoenix Headland
- Unknown Quadtel Headland
- Headland IQS(Phoenix A286)
- The AMI, Quadtel and Phoenix variants of IBM AT
- Samsung Deskmaster 286
- A Dev branched Micronics 386 Board
2019-12-15 22:05:23 +02:00
OBattler
3089e8f358 Merge pull request #494 from dhrdlicka/feature/win_d2d
Direct2D refinements
2019-12-13 04:44:32 +01:00
David Hrdlička
042d9228ea win_d2d: port to C 2019-12-12 23:04:03 +01:00
David Hrdlička
2cb6c73555 win_d2d: remove unnecessary headers and ifdefs 2019-12-12 12:18:34 +01:00
David Hrdlička
cef9ea2cbc win_d2d: update copyright header 2019-12-09 22:57:45 +01:00
David Hrdlička
5202d274b9 win_d2d: unify windowed and fullscreen rendering 2019-12-09 20:54:16 +01:00
David Hrdlička
3dc48d26f4 win_d2d: lazy initialization of d2d_bitmap 2019-12-09 20:18:27 +01:00
David Hrdlička
a528cd60c7 win_d2d: blit straight into d2d_bitmap 2019-12-09 20:14:38 +01:00
David Hrdlička
0c99025756 prt_ps: added a more verbose message when gsdll32 is not found 2019-12-07 13:08:51 +01:00
OBattler
88b9978fae Introduced video double-buffering (so that the render buffer is no longer the same as the interim buffer) and made SDL (Hardware) auto-hint the renderer per the suggestion and code by Agetian. 2019-12-06 03:50:54 +01:00
David Hrdlička
a18f9fa199 Merge branch 'master' into feature/discord 2019-12-05 00:56:21 +01:00
OBattler
26c0a5d2ea Removes the legacy DirectDraw and Direct3D 9 renderers, and instead adds SDL (Hardware) and renames the existing SDL renderer to SDL (Software). 2019-12-05 00:51:07 +01:00
David Hrdlička
e0d070a934 win_discord: update copyright headers 2019-12-05 00:14:25 +01:00
David Hrdlička
ae4facc969 win_discord: compile the discord module by default 2019-12-05 00:07:16 +01:00
David Hrdlička
539ef0044a win_discord: configurability 2019-12-04 21:55:35 +01:00
David Hrdlička
a77a7a15db win_discord: initial commit 2019-12-04 13:12:34 +01:00
OBattler
7f488e14b9 Final, cleaned up AMD PCnet emulation. 2019-12-02 18:27:40 +01:00
OBattler
b35798c537 Defaulted the Pro Audio Spectrum 16 to not compile even for the Dev build until it is fixed. 2019-12-02 17:08:35 +01:00
OBattler
4c64f87389 Brought back the PostScript printer. 2019-12-02 07:14:44 +01:00
OBattler
a838e8548f PIT rewrite. 2019-12-02 07:05:12 +01:00