Commit Graph

3394 Commits

Author SHA1 Message Date
Thomas Jentzsch 109e6c1065 disabled unreachable code 2019-08-16 11:07:16 +02:00
Thomas Jentzsch 48836e849e replace magic controller strings with enums
automatic detected controller update in GameInfoDialog & StellaSettingsDialog
2019-08-16 11:05:55 +02:00
Thomas Jentzsch d531d8e686 minor refactoring 2019-08-16 06:54:17 +02:00
Thomas Jentzsch af84fbccc5 allow changing controllers during emulation 2019-08-15 20:17:57 +02:00
Thomas Jentzsch e3c97c3725 improve JoyMap hashing 2019-08-15 14:52:43 +02:00
Stephen Anthony 22b4f36bbc Remove redundant variable. 2019-08-15 07:59:54 -02:30
Stephen Anthony cb5a4e210c Fix minor clang warnings. 2019-08-15 07:57:53 -02:30
Thomas Jentzsch 9f51b8caa0 rename some variables 2019-08-15 12:20:10 +02:00
Thomas Jentzsch b47234f776 convert int into JoyAxis/JoyDir 2019-08-15 11:53:15 +02:00
Thomas Jentzsch 80a5c5c6bf first pass on converting int into JoyAxis/JoyDir 2019-08-15 10:58:11 +02:00
Thomas Jentzsch 55d3c9106f made EventMode an enum class 2019-08-15 10:12:37 +02:00
Thomas Jentzsch b21a821ccc fix (partially) #494 (ToDo: Stelladaptor) 2019-08-15 09:32:01 +02:00
Stephen Anthony 0e341a2467 Fix compile warning for strncpy in Visual Studio.
Hopefully this will make Thomas happy :)
2019-08-14 18:10:56 -02:30
Stephen Anthony 359244c66d Fix opening ZIP files that don't contain any ROMs. 2019-08-14 15:05:21 -02:30
Stephen Anthony bd66449412 Working on FileListWidget, and keep forgetting to commit this bit. 2019-08-14 13:43:32 -02:30
Thomas Jentzsch 50cb562592 Merge branch 'master' of https://github.com/stella-emu/stella 2019-08-14 17:26:02 +02:00
Thomas Jentzsch d731b71afb propagate 'repeated' to dialogs 2019-08-14 17:25:42 +02:00
Stephen Anthony 48e9e81747 Convert remaining Logger functions to new API: fixes #515. 2019-08-14 12:02:04 -02:30
Thomas Jentzsch 950068ba60 fix #513
support using ESC to exit debugger
2019-08-14 14:52:28 +02:00
Thomas Jentzsch f908679b7c oops 2019-08-14 12:11:32 +02:00
Thomas Jentzsch 05cecb95b9 refactored logging and removed magic numbers 2019-08-14 12:01:15 +02:00
Thomas Jentzsch a36e01ac71 remove some debugging output
refactored controller mapping loading
2019-08-14 09:47:34 +02:00
Stephen Anthony f7c70e46f5 libretro: fix minor compile warning. 2019-08-13 16:58:17 -02:30
Stephen Anthony a04a310944 Fixed minor compile warning. 2019-08-13 16:54:38 -02:30
Thomas Jentzsch c68e8f1c30 fix #393 by using one-shot breakpoints 2019-08-13 17:27:23 +02:00
Thomas Jentzsch c769d22b54 allow RomInfoWidget text to fill multiple lines 2019-08-13 14:38:40 +02:00
Thomas Jentzsch 654c843084 add long button press to launcher for power on options
note: currently this feels more like a hack
2019-08-13 14:06:27 +02:00
Thomas Jentzsch 3348495a55 fix some joystick mapping bugs
update R77 readme with button combos
2019-08-12 16:26:35 +02:00
Thomas Jentzsch e236b0ce95 rename paddle events
update input mapping doc
remove abbreviation from InputDialog tab
2019-08-12 11:09:00 +02:00
Thomas Jentzsch 28c3d126be make startup bank available in GameInfoDialog
add bankswitching type detection in GameInfoDialog when started from launcher
2019-08-12 09:22:36 +02:00
Stephen Anthony b99c7e1678 Fix minor compile warnings in gcc and clang. 2019-08-11 21:53:06 -02:30
Thomas Jentzsch 846a117a5e add start bank option to GameInfoDialog 2019-08-11 22:21:28 +02:00
Thomas Jentzsch b965842975 fix TiaInfoWidget display 2019-08-10 22:39:02 +02:00
Thomas Jentzsch 0b2ca6572a fix #511 2019-08-10 18:08:53 +02:00
Thomas Jentzsch 30f0b03e82 Merge branch 'master' of https://github.com/stella-emu/stella 2019-08-10 17:46:16 +02:00
Thomas Jentzsch 1ecf55ffc0 make controller repeats configurable in UIDialog 2019-08-10 17:45:50 +02:00
Stephen Anthony bab08b2660 Fix minor clang warnings. 2019-08-10 09:48:57 -02:30
Thomas Jentzsch ce10108660 improve controller remapping
stop input repeats during remapping
2019-08-10 13:56:32 +02:00
Thomas Jentzsch 2c07c2918a change joystick mode mapping string delimiter 2019-08-10 11:30:35 +02:00
Thomas Jentzsch d60837e3d8 fix display of unmapped events in HelpDialog 2019-08-10 08:51:03 +02:00
Thomas Jentzsch 0b15163c8a change key mapping strategy: left and right modifier key are not considered separately except when pressed alone 2019-08-09 08:42:46 +02:00
Thomas Jentzsch 8c332f3bd6 Merge branch 'master' of https://github.com/stella-emu/stella 2019-08-08 11:47:07 +02:00
Thomas Jentzsch 18d5045d8e improve mapping with modifier keys 2019-08-08 11:46:43 +02:00
Stephen Anthony a7c138c13d libretro: fix compile errors. 2019-08-07 14:54:11 -02:30
Thomas Jentzsch 7cd45ec32a add multi line string drawing (used in Input Dialog) 2019-08-07 15:17:19 +02:00
Stephen Anthony 0ab31bcec4 Fix minor compile warnings in clang. 2019-08-05 09:27:38 -02:30
Thomas Jentzsch 36cc239066 Merge remote-tracking branch 'remotes/origin/feature/controller-mapping' 2019-08-05 10:01:43 +02:00
Thomas Jentzsch 6943d1445f use ellipsis in non-editable EditTextWidget 2019-08-05 09:47:05 +02:00
Thomas Jentzsch 1e480796bc added some computer keypad keys to default mappings 2019-08-05 09:21:05 +02:00
Thomas Jentzsch 9f59b99525 enhanced keyboard detection for "Laser Keyboard" game 2019-08-04 12:25:33 +02:00
Stephen Anthony 4d75dcb462 libretro: Final fix for 32-bit framebuffer alignment issues (hopefully). 2019-08-03 19:22:33 -02:30
Thomas Jentzsch 0135c873a4 clear left 2 pixel 2019-08-03 16:06:22 +02:00
Thomas Jentzsch 6744d3a45a fix the unrolled phosphor code 2019-08-03 15:48:31 +02:00
Thomas Jentzsch cac9c634e8 fix #504 (please test with video effects and phosphor on and off) 2019-08-03 10:24:25 +02:00
Thomas Jentzsch 5dcc687f35 add mouse wheel zooming to TIA zoom widget in debugger
fix coordinates for handleMouseWheel()
2019-08-02 14:07:05 +02:00
thrust26 4294a2d8b8 experiments with mapping 2019-07-29 18:59:02 +02:00
Thomas Jentzsch eb9bca9a81 allow dragging debugger zoom widget with mouse 2019-07-29 13:40:43 +02:00
Thomas Jentzsch 47457664e2 Improve zooming 2019-07-28 19:55:36 +02:00
Thomas Jentzsch c53fb6ab00 implement left button zoom and extra options in zom window (#506) 2019-07-28 14:15:03 +02:00
Thomas Jentzsch db7def887d implement swapped hotspot option for UA (for Mickey) 2019-07-28 11:11:27 +02:00
Thomas Jentzsch bd39c0836f adapted UA bankswitching to new Brazilian carts (except Mickey) 2019-07-28 09:58:38 +02:00
Thomas Jentzsch 78cce1e50b fixed hotspot address 2019-07-28 08:19:24 +02:00
Thomas Jentzsch 8e177cf627 fix #507 2019-07-27 11:45:50 +02:00
Thomas Jentzsch 3eed4fa3a9 Merge branch 'master' of https://github.com/stella-emu/stella 2019-07-26 15:46:45 +02:00
Thomas Jentzsch 0112b89666 add load and save all states commands to debugger 2019-07-26 15:46:24 +02:00
Stephen Anthony 337b73ff01 Fix a few files that have Windows CR-LF endings. 2019-07-25 12:33:54 -02:30
Thomas Jentzsch d6e2c11275 fixed wording 2019-07-25 16:49:02 +02:00
Stephen Anthony dc7697a4d4 Fix old C-style casting.
There's a lot of code here that seems to change, but it's actually only one line.
I think newline differences are messing things up.
2019-07-25 10:14:57 -02:30
Thomas Jentzsch 61d9f26bc6 implement variable DPC pitch 2019-07-25 11:09:02 +02:00
Stephen Anthony 39feee8c0a Sometimes going up one directory didn't highlight the directory name. 2019-07-19 15:32:33 -02:30
Stephen Anthony 898f00dff0 Going upwards in file list now selects each previous directory.
Still TODO is determine if it's worth the effort to do the same when descending directories.

Finally getting back to development again.
2019-07-19 13:52:57 -02:30
softtwo daf4c0e715 libretro: fbo alignment 2019-07-04 18:07:40 -02:30
softtwo 502b8f3a3e libretro: load user palette 2019-06-30 21:24:15 -02:30
softtwo ffe63992fc libretro: writable save files 2019-06-30 21:24:04 -02:30
thrust26 b5ae1284ca fix several bugs 2019-06-30 11:43:36 +02:00
Stephen Anthony 8e425e7297 libretro: TV effects setting wasn't loading proper effect.
Note: raw ints are bad, enums are good.  Whenever Stella uses enums, libretro should use them too.
2019-06-29 23:35:10 -02:30
thrust26 ee47db85c1 remove SA specific events 2019-06-29 14:48:54 +02:00
thrust26 4334d00d6d refactor into mapping into single class
add paddle mappings
2019-06-23 20:22:10 +02:00
Stephen Anthony fe464c2521 Use smart pointer in Windows FSNode stuff. 2019-06-23 15:38:16 -02:30
Stephen Anthony e8ed2fa1dd Fix file selector with certain ZIP files not containing any ROMs. 2019-06-23 14:43:09 -02:30
thrust26 e4af4b8ff2 add controller dependent mappings 2019-06-23 14:42:04 +02:00
Stephen Anthony a04fbc8292 Fixed Xcode project for recent file selector changes. 2019-06-22 21:37:09 -02:30
Stephen Anthony 37908e8798 Fixed Windows build for latest file selector changes. 2019-06-22 21:25:40 -02:30
Stephen Anthony bcca945951 More reworking of the file selection mechanism.
- removed GameList, and integrated functionality directly into 'FSList' (which was mostly doing the same thing)
- have FSNode::getChildren() relabel directories, instead of Browser and Launcher dialogs
- MD5 calculations in ROM launcher are now cached, instead of being recalculated each time a directory is left and re-entered

Windows and macOS likely broken for a moment; this will be fixed next.
2019-06-22 21:09:42 -02:30
thrust26 b2f285d723 fix button modifier mappings
Stelladaptor specific code removeDialog
code cleanup
2019-06-22 16:54:21 +02:00
thrust26 fbf05505d3 Merge branch 'master' of https://github.com/stella-emu/stella into feature/controller-mapping 2019-06-22 10:55:21 +02:00
thrust26 bb7bebb79f allow button as modifier for direction and hat
load/save controller mappings
2019-06-22 10:37:42 +02:00
thrust26 8210a25f40 implement rudimentary mapping 2019-06-21 21:11:52 +02:00
Stephen Anthony 786f3b2a49 First pass at converting LauncherDialog to use FileListWidget, similar to BrowserDialog.
- FileListWidget is a newer development, and LauncherDialog duplicates some (but not all) of its functionality
- Similarly, BrowserDialog has some functionality that LauncherDialog does not
- We will implement all required functionality in FileListWidget, and have both classes use it.

BrowserDialog is currently slightly broken; not all functionality is reimplemented yet.
2019-06-21 14:51:55 -02:30
thrust26 529c1fe7de refactor into two separate maps for stick and hats 2019-06-21 10:35:45 +02:00
thrust26 7176d291b3 initial changes 2019-06-20 14:13:59 +02:00
thrust26 d7e9c95fb0 eliminating some magic numbers in joystick handlers 2019-06-19 21:58:39 +02:00
thrust26 77c2824d4a Merge branch 'master' of https://github.com/stella-emu/stella 2019-06-17 21:05:48 +02:00
thrust26 b940aea542 fix #353 2019-06-17 21:05:31 +02:00
Stephen Anthony 84d44273d3 Minor refactor for PKeyboardHandler WRT 'Alt' functionality. 2019-06-17 11:58:37 -02:30
Stephen Anthony 4ae491dd6c Refactoring: remove obsolete 'myEvent' from PKeyboardHandler. 2019-06-16 17:47:52 -02:30
thrust26 168833e000 remove superfluous includes 2019-06-16 20:05:01 +02:00
thrust26 9ca49afeee Merge branch 'master' of https://github.com/stella-emu/stella 2019-06-16 19:52:29 +02:00
thrust26 c20035ccce refactor CompuMate key handling (uses events now too) 2019-06-16 19:52:14 +02:00
Stephen Anthony 5e6db1be0d Some UI code refactoring.
Since 'repeat' is now enabled below the UI level, we no longer need to track key presses.
2019-06-15 19:58:45 -02:30