Commit Graph

77 Commits

Author SHA1 Message Date
adelikat ff86d6d5db Config dialogs - OSD message when cancelling 2012-09-27 00:14:51 +00:00
adelikat f167551154 Add a "saved" OSD message when clicking ok/save on config dialogs 2012-09-26 01:28:48 +00:00
adelikat 2f8ce5e1d1 SNES - hook up autofire controllers, also probably hooked up player 3 & 4 that were probably not working up to now 2012-09-26 01:20:11 +00:00
goyuken 3280746e39 InputConfig: auto-focus the first control option when loaded
fixes issue 50
2012-09-23 22:42:27 +00:00
adelikat e2a7fd0655 Input Config - clear mappings context menu 2012-09-17 22:43:42 +00:00
adelikat 4446ad07a7 Code cleanup on the input config dialog 2012-09-15 19:47:58 +00:00
adelikat 48eb366392 Input config - transparent background on nes, snes, and ti83. Still eventually need better images than these though 2012-09-15 17:33:21 +00:00
andres.delikat 1068987a33 Add SNES controller image to input config, also some tweaks to the dialog. TODO: all these controller images could be better 2012-09-10 18:21:53 +00:00
andres.delikat 1460f7b860 Input Config - show when a button mapping conflicts with a hotkey mapping (but still allow it) 2012-09-10 17:49:33 +00:00
zeromus 37e6f68370 bsneshawk step 1 of N - compile libsnes, make bsneshawk core, setup interop, support frameadvance, video, gamepad. games are playable, I think. 2012-09-04 00:20:36 +00:00
adelikat 34c796d96d Input Config - fix bug where auto-tab setting was not being respected when changing controllers or consoles 2012-07-30 00:43:40 +00:00
adelikat abba87738f Fix input config for Gameboy, some small random work on ColecoHawk 2012-05-18 22:57:05 +00:00
zeromus 42715fdca7 rehabilitate the GB core: fix videoprovider and input system 2012-05-18 18:28:12 +00:00
adelikat cb3df74105 Atari - console buttons now work in input config dialog 2012-03-30 23:34:38 +00:00
andres.delikat e4acb65ed1 Controller Config - hook up atari console buttons mostly, still one thing to fix up, currently crashes when trying to save 2012-03-30 22:03:08 +00:00
brandman211 81586afc20 Finished merging...499 lines. Not as good as I had hoped, but the file would have been significantly smaller if controller templates just used dictionaries and had just a little bit more consistency. 2012-03-25 07:10:11 +00:00
brandman211 da65f8bdd4 -Merged Atari.
-Line count: 583.

TODO: The one I really didn't want to deal with...Gameboy. Why did you have to make this a NESControllerTemplate instead of a GameboyControllerTemplate[]?
2012-03-25 07:00:21 +00:00
brandman211 bc1804dcdb -Made it so that the right controllers use the default settings.
-Merged Genesis.
--This was completely broken beforehand.
---Update updated PCE.
---It had 8 joypads instead of 1.
-Line count: 661.

Note: Atari Auto 2 throws an exception.
2012-03-25 06:42:31 +00:00
brandman211 b28cfca204 -Merged TI-83.
--As it'd be obnoxious to make CONTROLS a string, object dictionary and have casts all over the place, I just made a TI83Controls string array to match CONTROLS["TI-83"].
--Positioned the fields as well as I could.
--The config for ( and ) were switched. Fixed. Yet another example of redundant code failing! :)
-Line count: 741.
2012-03-25 06:05:13 +00:00
brandman211 5e126bf04f -Made the last two TI-83 buttons visible in the Config by increasing the height from 556 to 580.
-Started merging TI-83 to Do:
--This is going to be difficult because the field names are not the same as the label names, meaning that I'm going to have to use a dictionary for TI-83, if not for all of the controls.
--I have to create a formula that calculates the proper row / column for a given field to be placed. Sounds like fun.
2012-03-25 02:36:20 +00:00
brandman211 a07165cffd -"PC Engine / SGX" -> "PC Engine / SuperGrafx".
-Line count: 978.
2012-03-25 02:11:26 +00:00
brandman211 4f2ebdfbd4 -Fixed InputConfig_Load...forgot that the switch syntax from before acts like an OR statement; I thought it meant "don't do anything".
-PCE.
2012-03-25 01:58:33 +00:00
brandman211 1d21a89f3a Converting merges one at a time...here's SMS.
-Because of Reset and Pause being separate from everything else, I had to code a special condition for these.
-Line count: 1081.
2012-03-25 01:32:44 +00:00
brandman211 8686cc87ff Converted the switch statement in InputConfig_Load to a dictionary. 2012-03-25 00:54:40 +00:00
brandman211 0eae992403 Created general functions Do and Update.
-Because I have been advised not to convert the objects to dictionaries, and because using the equivalent of typedef seems confusing if it isn't outright impossible, I had to implement switch statements to handle certain aspects on a platform to platform basis.
-These will end up being much bigger than I would have hoped, but the entire file will be much, much smaller.

TODO: Implement all of the other platforms using these functions.

Note: It seems that the Enabled checkbox doesn't do anything other than persist its state. I checked the latest release, and the same issue was there, so I didn't break it!
2012-03-25 00:39:51 +00:00
brandman211 d7453a3770 -Shrunk UpdateNES. 2012-03-24 21:06:47 +00:00
brandman211 f6a353196d -Started refactoring InputConfig.cs as adelikat requested:
--Created CONTROLS constant which contains all of the controls in one dictionary.
--Shrunk DoNES significantly.

TODO:
-Shrink UpdateNES.
-Generalize both functions and apply to NES.
-Have all of the platform specific functions utilize these generalized functions.
-Combine all of the platforms.
2012-03-24 19:45:50 +00:00
adelikat 2e5ec4fdcb Fix bugs in input config regarding atari controllers, fix auto-fire controllers for atari (both controllers) 2012-03-23 02:15:58 +00:00
adelikat 715d46ed1d Hook up atari controller 2 to input config dialog. 2012-03-23 00:39:21 +00:00
adelikat 684252a816 Fix mainform context menu logic from the screenshot to clipboard addition 2012-03-23 00:06:20 +00:00
adelikat 365f60988e Hook up Atari to the controller config dialog (interim only) 2012-03-21 02:44:01 +00:00
andres.delikat b2748b7836 Genesis - hook up lag counter (shows all frames as lag currently), and hook core up to input config dialog (1 controller only currently) 2011-12-24 01:59:51 +00:00
andres.delikat 9196e5d1ec Input Config - auto focus when drop down menus change 2011-09-11 04:23:35 +00:00
beirich 4b65d9e9cf Fix someone's freudian typo 2011-08-10 00:14:21 +00:00
andres.delikat 8fa630c0fa Autofire UI for PCE, GG, GB 2011-08-09 02:40:22 +00:00
andres.delikat 63b1f9b93a Input Config - autofire for SMS/GG/SG, disable autofire pulldown item for TI83 2011-08-09 02:16:46 +00:00
andres.delikat 4cd457ada6 Hook up autofire nes controls to the input config dialog 2011-08-09 01:38:51 +00:00
andres.delikat 9b2ba5c85c Basic implementation of Global.ActiveController, uses an ORAdapter to OR against Active Controller. Still TODO: setting up autofire controllers for platforms and a UI in the Controller Config 2011-08-09 00:51:46 +00:00
zeromus f8f1906a3c make alt hotkeys more useful by preventing interference from windows menu system 2011-07-10 19:50:59 +00:00
andres.delikat 3a9acac5a4 Input config - fix height resizing of TI83, fix ordering of controllers in combo box. Remove calls to hardcoded indexes of the comboboxes (use the string names instead!) 2011-07-10 13:16:24 +00:00
andres.delikat 7f2079beed Input config - autotab toggle 2011-07-09 18:01:46 +00:00
andres.delikat 7dbe4472d9 Default key mappings - switch so keyboard bindings are first, joypads 2nd 2011-07-09 17:40:26 +00:00
andres.delikat 8d856ccd53 Input Config - remove now obsolete TruncateButtonMapping function 2011-06-22 17:35:19 +00:00
andres.delikat 0e36c7d401 Input Widget - allow mapping to just ctrl, alt, or shift 2011-06-19 03:35:57 +00:00
andres.delikat 3a8721f600 Input Config - fix so that multiple mappings are at least displayed again 2011-06-19 02:55:15 +00:00
kylethomson 18fe637193 Start of MultiTrack. 2011-06-16 01:18:16 +00:00
andres.delikat 2fcb35a4e4 Input Config - Fix NES select & start (I had the saving of the key mappings flip flopped) 2011-06-09 00:58:09 +00:00
andres.delikat 0224eebbf1 Allow L+R/U+D toggle (just the GUI & config work, not hooked up yet) 2011-06-04 23:17:59 +00:00
andres.delikat 2a7996c228 Input Config - NES controls - swap Select & Start 2011-06-04 14:07:55 +00:00
andres.delikat c9bca52ccb Fix up more TI83 buttons stuff, input display no longer crashes when navigating away from the TI83 section. 2011-04-25 00:45:22 +00:00