Commit Graph

15 Commits

Author SHA1 Message Date
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
YoshiRulz e12b5d8137
Refactor FloatRange creation and usage
effectively resolves #1200
* Replaced floats in FloatRange with ints (would have used shorts but
SubGBHawk/SubNesHawk use an axis to hack in cycle count or something), added
both Range<int> and Range<float> auto-properties
* Added bool field IsReversed to FloatRange
* Added enum AxisPairOrientation and factory method using it
* Cleaned up usages of FloatRange fields and properties
* Added new properties to PadSchema.ButtonSchema for type
PadInputType.AnalogStick (to hold the two FloatRanges) and used
ControllerDefinitions from cores to dedup these ranges in the schemata
* Made VirtualPadAnalogStick work properly: both the direction and bounds are
correctly set from the controller schemata, the polar conversion measures angles
consistently (though I think it might not work outside -128..127 e.g. for PSX),
and I didn't break the sensitivity override, plus negative percentages might
work now but I didn't allow those
* Renamed FloatRange to AxisRange, but did not rename related symbols
2020-03-14 20:47:45 +10:00
adelikat 606c3bf1c2
use more advanced language features in Emulation.Cores (#1852)
* Use expression bodies in Emulation.Cores, and a few other misc cleanups

* remove unused usings in Emulation.Common

* cleanups in Tables_Direct.cs

* some cleanups in nes boards - redundant code

* remove some redundant array initializers in Emulation.Cores

* cleanup AmstradCPC.Controllers

* use object initializers in a lot of places

* nes mappers - remove disch's notes comments in favor of the nesdev wiki link

* cleanup CdtConverter.cs, mostly use of object initializers

* remove redundant .ToString() calls in Emulation.Cores

* using var in Emulation.Cores

* AmstradCPC/ZXSpectrum - simplify some linq, tabs instead of spaces, a few other misc cleanups

* Use null-propagation in Emulation.Cores
2020-02-17 16:54:51 -06:00
alyosha-tas afebde0d3e A7800: change 'trigger' to 'button' 2018-12-14 18:23:24 -06:00
alyosha-tas 59f43b144e Core Code Cleanup 2018-12-05 09:01:25 -06:00
alyosha-tas 77bba444fd A7800: Fix unplugged controller and Pokey sound 2018-06-28 18:10:28 -04:00
alyosha-tas 1173e887ea A7800Hawk: Update to correct mnemonics 2017-07-29 19:23:08 -04:00
alyosha-tas efcb73615b A7800Hawk: Add Light Gun Support
-Needs testing
2017-07-26 09:28:14 -04:00
alyosha-tas 42b379b486 A7800Hawk: Controller convention fixes
-Revert setting system ID to A78 (it broke controller selection)
-Fix some button names to match nemonics
-Fix controller names to match images (still some missing though)
2017-07-24 17:41:22 -04:00
alyosha-tas 133d92cb6e Atari7800Hawk: Fix Controller detection 2017-07-22 21:33:21 -04:00
alyosha-tas 2ae9de98ef A7800Hawk: Updates and Bug Fixes
-Fix save states
-Fix sync settings
-Controller Support / improvements
2017-07-21 19:32:50 -04:00
alyosha-tas 7914532ff0 A7800Hawk: Update Controllers
Now supports 2 button controller
Also fixes a few other small bugs
2017-07-16 11:56:02 -04:00
alyosha-tas d9cc1558aa Atari7800Hawk: More Core Work
- Adds Fire button (centipede and Asteroid now playable)
- Improve Maria, add holey DMA, fix numerous bugs
- Fix slow cycle memory mapping.
2017-07-06 15:25:21 -04:00
alyosha-tas 170381597b Atari7800Hawk: Core Cleanup
-now gets in game in choplifter
-implement player controls
-fix memory mapping bugs
-clean up code
-implement more video modes

There is still a serious timing bug that i need to track down and a lot of video mode work to do, but getting in game is at least making progress.
2017-07-05 16:14:27 -04:00
alyosha-tas 55fb3bb1dc Add files via upload 2017-06-11 18:06:50 -04:00