Commit Graph

52 Commits

Author SHA1 Message Date
YoshiRulz 3decfa5019
Use inheritance instead of Type for PadSchema controls
* Rename ButtonSchema to PadSchemaControl, create ButtonSchema subclass, rename
AnalogSchema to AnalogStickSchema, and make PadSchemaControl abstract
* Replace switching on PadSchemaControl.Type (enum PadInputType) with type
checks
* Refactor and merge VirtualpadTool.CheckPads() into .CreatePads() (it was
easier than just using type checks in the old algorithm)
* Move members from PadSchemaControl to subtypes and cleanup
2020-03-31 21:40:36 +10:00
YoshiRulz 0ba7a5a7df
Rename axis-related types, members, and locals
I left a few methods where they had an equivalent *Bool*() for buttons, and also
left some in TAStudio that get serialised.
2020-03-31 17:29:55 +10:00
adelikat 1f8171fc9b PadSchema - remove MaxSize as it wasn't being used, rename DefaultSize to just Size 2020-03-22 16:23:01 -05:00
adelikat b520211cf2 NesSchema - simplify some 2020-03-22 16:04:45 -05:00
adelikat 1b7698aa71 ButtonSchema - simplify UDLR helper methods more 2020-03-22 15:57:43 -05:00
adelikat ec353e163e ButtonSchema - simplify with another overload 2020-03-22 15:15:22 -05:00
adelikat 554e0dcf80 ButtonSchema - simplify more 2020-03-22 15:09:19 -05:00
adelikat c0ffe0e0e3 ButtonSchema - use overloads more 2020-03-22 14:32:27 -05:00
adelikat 7b6ff18775 ButtonSchema - use more constructor overloads to simplify 2020-03-22 14:13:01 -05:00
adelikat 90a03f3f6a ButtonSchema - lock down Location setting 2020-03-22 13:21:38 -05:00
adelikat 1c9260f7cf ButtonSchema - use name overload more 2020-03-22 13:16:30 -05:00
adelikat 5f24a07fc9 add ButtonSchema overload with name, and use it in places 2020-03-22 12:56:00 -05:00
adelikat 0344b0affb make PadSchema.IsConsole not settable, force the use of inheritance 2020-03-22 12:37:28 -05:00
adelikat ec36ed6206 ButtonSchema - make Type not directly settable and force the use of inheritance to set it 2020-03-22 12:18:47 -05:00
adelikat 2560def438 Virtual Pad - ButtonSchema - make location constructor the only option since location is always required, change param order on Directional helper methods for consistency 2020-03-21 22:24:06 -05:00
adelikat a52c46339e VirtualPad Schema - add some helper methods for creating directional pad buttons, since those are so common 2020-03-21 18:12:26 -05:00
adelikat 4476cc53af VirtualPads - unnest ButtonScehma and PadInputType 2020-03-21 18:12:26 -05:00
adelikat 0ecc1e8023 VirtualPad Schema - default to type Button, and remove now redundant setting of this value 2020-03-21 16:10:01 -05:00
adelikat c1e2f6afe5 VirtualPad Schema - don't show display name if icon is preset, default to Name if displayName is not present (and no icon). Delete a lot of now redundant DisplayName assignments 2020-03-21 15:22:30 -05:00
adelikat dedd618db4 subneshawk - delete a bunch of code by using the underlying core for services, cleanup, and implement some services that were missing 2020-02-18 13:19:17 -06:00
YoshiRulz 060255471b
Improve exception docs in BizHawk.Client.EmuHawk 2020-01-02 21:51:37 +10:00
adelikat b390c2829c cleanup virtualpad code 2019-12-31 11:36:22 -06:00
alyosha-tas 84b0917f65 Vectrex: Add schema and do some miscellanous clean up 2019-07-09 20:01:45 -04:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
adelikat 5d855ef60b more attribute renaming 2017-07-12 14:40:10 -05:00
adelikat 50b5f4a1a9 Virtualpad misc cleanups 2017-05-24 09:07:03 -05:00
adelikat 436a853c96 Fix typo - Scema -> Schema 2017-04-29 15:41:27 -05:00
adelikat 8c57dd98f3 NESHawk - add IsFDS flag and use it in NesSchema instead of a check for BoardName == "FDS" 2016-12-13 15:24:53 -06:00
adelikat f1e528f68f Virtual pads - pass the current core into schema objects instead of using Global.Emulator 2016-12-05 19:33:21 -06:00
nattthebear ec787d049d NESHawk: support SNES controllers 2016-04-05 17:16:27 -04:00
jdpurcell 260176e458 Fix NES Zapper target being 210 pixels tall instead of 240.
Fix max X/Y value of target being high by 1.
2015-01-01 22:14:03 +00:00
hegyak d1f0bfd89c Allow Virtual Pad to support QuickNES with One, Two or No controllers. 2014-11-19 01:01:27 +00:00
jlennox a64017366c Create ISettable<T,T2>/ISettable interfaces. This checkin has not been extensively tested. 2014-10-19 01:22:47 +00:00
adelikat f875792c74 TAStudio - column names for float values 2014-07-07 16:03:22 +00:00
adelikat 5c8cf8b141 Virtualpad Target screen - cleanup some unneeded code 2014-07-04 15:12:14 +00:00
xmikecampx7 76652312e8 FamicomFamilyKeyboard Schema Setup 2014-06-30 00:36:57 +00:00
adelikat ee6d73aac7 Virtualpads - some code cleanup 2014-06-29 03:14:40 +00:00
adelikat 75d4ff5117 Virtualpads - refactor schema objects to return a PadSchema collection instead of Virtualpad collection, and create the pads in the calling code 2014-06-27 17:02:46 +00:00
adelikat 92e0865b3f oops 2014-06-27 16:31:42 +00:00
adelikat e469cb73f2 Virtualpads - fds console buttons (including dynamically adding number of disk insert buttons) 2014-06-27 16:30:54 +00:00
adelikat 8c287ecc79 Virtualpads - nes console buttons 2014-06-27 14:09:28 +00:00
adelikat d6e56bf9fb Virtualpad - Start support for family basic keyboard 2014-06-25 00:56:20 +00:00
adelikat fbb14175f9 Support Oeka Kids Tablet in virtualpads and bk2 mnemonics, oh yeah 2014-06-25 00:44:22 +00:00
adelikat 9045f8402c Virtual Pads - hook up Nes Power Pad and also hook it up to bk2 mnemonics 2014-06-25 00:11:59 +00:00
adelikat a1926e1a58 Make virtualpads prettier including a Display name that can (should) be set in the schema, and an optional Max Size (defaults to default size if left out), added lots of nes stuff, and basic 2 player famicom (including microphone on player 2) 2014-06-24 23:32:30 +00:00
adelikat 3208440225 Virtual Pads - basic analog button control and wire up to NES arkanoid paddle 2014-06-24 12:58:08 +00:00
adelikat bb93dd0d42 Virtualpads - make a custom attribute for schema objects instead of using the Description attribute 2014-06-23 23:46:44 +00:00
xmikecampx7 886681bb9d Schema GamePads Added 2014-06-23 14:13:07 +00:00
adelikat bf33ba0575 Virtual Pads - support quicknes (2 controllers only at all times) and Neshawk for 2 controllers that are none, standard, or zapper (no multitap, no famicom stuff) 2014-06-23 00:05:22 +00:00
adelikat 4b23150d14 Some fixing up of how pads are added, don't set 0,0 on the TartScreen widget when clearing 2014-06-22 23:32:37 +00:00