Commit Graph

2537 Commits

Author SHA1 Message Date
Kiall Mac Innes
16bbe847ef Disable WII Lightgun hack by default (#5056) 2019-05-14 16:55:59 -04:00
Robbbert
6d3eddd819 (nw) possible fix for MT 07275 [hap] 2019-04-19 18:38:13 +10:00
R. Belmont
e97a88bb37
Merge pull request #4862 from kiall/multi-lightgun
Linux X11 Input: Fix multiple lightgun support
2019-04-05 16:41:25 -04:00
Kiall Mac Innes
e57093ff65 Linux X11 Input: Fix multiple lightgun support
On X11 Linux, every lightgun event was passed onto every lightgun
device within MAME. This obviously works for 1 gun, but with 2, it
causes both crosshairs to move in the same direction at the same
time.
2019-04-05 20:36:19 +01:00
AJR
8bebefc645 OS X debugger: Update window titles when restoring configuration for disassembly and memory viewers 2019-03-27 19:15:52 -04:00
Vas Crabb
97b6717027 (nw) Clean up the mess on master
This effectively reverts b380514764 and
c24473ddff, restoring the state at
598cd52272.

Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline.  When things like this happen, it wastes
everyone's time.  I really don't need this in a week when real work™ is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
2019-03-26 11:13:37 +11:00
andreasnaive
b380514764 Revert "conflict resolution (nw)"
This reverts commit c24473ddff, reversing
changes made to 009cba4fb8.
2019-03-25 23:13:40 +01:00
Olivier Galibert
fa741aa060 fs_xbr-lv3-noblend.sc: Fix compile (nw)
We do not seem to have shader compilation in our automated testing, that could be a problem...
2019-03-25 09:56:47 +01:00
Andreas Müller
0a32d46793 OSD/OpenGl: Improve performance by moving calculations out of loop
This one was triggered by batman.

Test case:
mame64 -nothrottle batman

Before: Average speed: 312.11% (20 seconds)
After: Average speed: 327.43% (19 seconds)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2019-03-04 00:23:43 +01:00
goldnchild
3a32835f9e Qt debugger: fix error in determining where clicks are in debugger views [Golden Child] (#4705) 2019-03-04 02:58:49 +11:00
R. Belmont
9cf8cf0ed7
Merge pull request #4698 from kiall/bug-4695
Linux X11 Input: Fix lightgun support
2019-03-01 11:56:21 -05:00
Kiall Mac Innes
ee2595d7c8 Linux X11 Input: Fix lightgun support
SDL/X11 number mouse/lighgun buttons 1,2,3, while windows and other parts of
MAME like offscreen_reload expect 0,2,1. Transpose buttons 2 and 3, and then
-1 the button number to align the numbering schemes.

This fixes lightgun support on Linux - tested with an Ultimarc AimTrak and
the following config:

    lightgun                  1
    lightgun_device           lightgun
    lightgunprovider          x11
    lightgun_index1           "Ultimarc Ultimarc"
    offscreen_reload          1

Note: MAME must be compiled with XInput support:

    make -j10 NO_USE_XINPUT=0

Fixes bug #4695
2019-02-28 09:15:18 +00:00
R. Belmont
debe2f560b
Qt debugger: fix error in determining where clicks are in memory views [Golden Child] 2019-02-27 17:26:56 -05:00
Vas Crabb
0ed2d2684e srcclean (nw) 2019-02-24 14:25:42 +11:00
Enik Land
dc09b5b25c sdl_sound.cpp: Remove leftover variable (nw) 2019-02-18 15:29:49 -03:00
Vas Crabb
f17f6c9d5c misc fixes
testkeys:
* Clean up and modernise code
* Use std::endl to end lines for its implicit flush
* Centre window (less likely to hide behind taskbar, etc.)

osdwin:
* Ensure new windows are positioned within the work area of a monitor
2019-02-18 18:03:39 +11:00
Vas Crabb
01ccbd89c9 (nw) remove some superfluous const, eliminate a superfluous temp, remove superflous semicolons, etc. and also fix a known broken build script change 2019-02-18 00:48:52 +11:00
Andreas Müller
2aa97bfc47 Show video-mode option 'accel' in help and GUI
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2019-02-17 13:06:02 +11:00
couriersud
757436bbfb Fixed sdl2 keymap processing. [Couriersud]
Keymaps must have been broken for ages:

-	It is now possible to map every scancode SDL2 defines.
-	Removed keycode field. This was a leftover from SDL1.x
-	Fixed bug preventing keymaps from working.
-	Fixed the DE keymap.
-	Converted other keymaps to new format and added a
    comment that they have to be reviewed and fixed.
2019-02-16 16:44:42 +01:00
Vas Crabb
05d0305c08 add GCC/clang implementations of 64*64->128 multiply for x86_64, and adjust some integer casts 2019-02-16 18:03:53 +11:00
Patrick Mackinlay
a7c5845317 osd: 64x64 multiply helpers (nw)
Can we have these? I didn't attempt to add implementations for anything other than MSVC, but I believe gcc and clang for 64-bit targets have equivalents.
2019-02-16 17:52:49 +11:00
R. Belmont
a143090d10
Merge pull request #4492 from algestam/bgfx_hlsl_fix
Transposed transformation matrix to fix bgfx colors (nw)
2019-01-16 09:28:28 -05:00
Vas Crabb
87822251d8 osd/windows: Send logerror to stderr if no debugger is attached and -oslog is on. 2019-01-13 02:47:35 +11:00
Vas Crabb
19612b1f10 apply -verbose after processing command-line options and after first pass over .ini files (nw) 2019-01-12 18:17:13 +11:00
Stiletto
a5461d9d6b
2018 -> 2019 changes (nw)
* 2018 -> 2019 changes (nw)
2019-01-10 17:01:26 -05:00
Henrik Algestam
40efb8f5aa Transposed transformation matrix to fix bgfx colors (nw) 2019-01-08 23:48:12 +01:00
Justin Kerk
4554d286d5 Keep track of which SDL input subsystems were initialized (nw) 2019-01-01 03:50:08 +00:00
Justin Kerk
65d0a8477e Better Emscripten SDL fix (nw) 2018-12-31 00:50:11 +00:00
Justin Kerk
98d3d350cc Fix joystick initialization with Emscripten SDL [Justin Kerk] 2018-12-30 21:52:45 +00:00
Justin Kerk
56d8eeff86 Workaround for Web Audio autoplay restrictions in Chrome 71 [Justin Kerk] 2018-12-30 13:25:27 -08:00
mooglyguy
94fbe66092 Fixed a few missing #includes flagged by VS2019 beta, nw 2018-12-30 13:24:16 +01:00
Vas Crabb
95538b9da8 Merge tag 'mame0205'
MAME 0.205
2018-12-26 06:11:07 +11:00
Vas Crabb
c36b648d96 work around Qt crash, thanks mizapf (nw) 2018-12-25 23:54:24 +11:00
Vas Crabb
bc6e3672d1 clean up sdl_sound a bit (nw) 2018-12-25 00:48:08 +11:00
hap
496be2f305 dwrite: noticed an error msg with missing \n (nw) 2018-12-14 13:39:52 +01:00
hap
cefe336561 make dsound default over xaudio2 (nw)
Reasoning: xaudio2 module was completely disabled for over 2 years and unmaintained. Using "auto", MAME actually chose dsound as default.
Plus I seem to be getting random buffer underflows/overflows with it, it needs to be more stable before it can be default.

related: 8889f182f1
2018-12-14 00:31:35 +01:00
Vas Crabb
113f98accc clean up and improve option descriptions 2018-12-13 11:04:05 +11:00
hap
8889f182f1 xaudio2: fix wrong dll, regression from a10fcd31d3 (nw)
https://mametesters.org/view.php?id=7170
2018-12-12 19:19:41 +01:00
AJR
9f4fc823d4 Fix OS X build after a45221458d (nw)
posixptty.cpp uses openpty, which remains in <util.h> under OS X.
2018-12-11 19:42:08 -05:00
Miodrag Milanović
a45221458d Android compile fix (#4395)
* Fix compile for Android, set API to 24

* Update Android Studio project to API 24

* Fixed project file to latest Android Studio

* fix build with gradle alone
2018-12-11 19:38:27 -05:00
Scott Stone
cd3b77121f dec8.cpp: Fix regression with ghostb, srdarwin (nw)
Some misc text changes to certain trigger usage info (nw)
2018-12-09 20:46:36 -05:00
Celelibi
d9d5839e16 sdl_sound.cpp: Rework the circular buffer
Previous code had several oddities. Like checks against buffer overflows
/ underflows done at several places in the code, usage of a spinlock,
unnecessary use of "volatile" qualifier, redundant informations about
the circular buffer and exposed details about the split nature of ranges
in the buffer. This lead to an unlikely deadlock once in a great while.

Signed-off-by: Celelibi <celelibi@gmail.com>
2018-12-09 21:06:58 +01:00
mooglyguy
0bd02131b6 3rdparty: Updated bgfx, bimg, and bx to latest upstream. [Ryan Holtz] 2018-12-05 19:45:08 +01:00
arbee
f1c9b0a8f5 Fix crashiness on OS X when the network device couldn't be opened (nw) 2018-11-22 17:30:42 -05:00
Patrick Mackinlay
ccdd6ae1fc taptun: and formatting too (nw) 2018-11-21 19:33:15 +07:00
Patrick Mackinlay
533cd7f6cc taptun: bollocks (nw) 2018-11-21 19:15:59 +07:00
Patrick Mackinlay
91993a13ad taptun: padding and fcs on Linux too (nw) 2018-11-21 19:06:08 +07:00
mooglyguy
13247311f6 Renamed flipendian -> swapendian, as I spent minutes trying to find the functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw 2018-11-05 19:11:18 +01:00
arbee
dfc8950639 nothing to see here (nw) 2018-11-03 12:32:45 -04:00
Vas Crabb
82501770de srcclean and cleanup (nw) 2018-10-28 14:00:12 +11:00