Commit Graph

81 Commits

Author SHA1 Message Date
adelikat 9584ff1f53 use switch expressions in some various places in EmuHawk, and some other simplifications 2020-03-04 20:18:43 -06:00
adelikat 4bf463a2fc use object initializers in Client.EmuHawk 2020-02-28 11:15:06 -06:00
YoshiRulz 4e5849030b
Fix typo 2020-02-28 12:13:12 +10:00
YoshiRulz a22a1637d0 Cleanup VirtualPadAnalogStick and use LUTs for polar conversion 2020-02-27 04:34:31 +00:00
YoshiRulz 71e3dbf6bc Replace RangeStruct with ValueTuple, add deconstruction for Range 2020-02-27 04:34:31 +00:00
YoshiRulz 126bb4736b
Move commented-out code blocks to #if false
CBB doing Cores or Bizware
2020-01-13 11:14:16 +10:00
YoshiRulz e7d0fb8299
Refactor/genericise MutableIntRange, add immmutables, add more methods
call now and I'll throw in not one but two float equality extensions for free
2020-01-03 03:32:51 +10:00
adelikat 64ea9afee5 cleanups 2019-12-31 10:17:55 -06:00
alyosha-tas ec03c6fa0f Fix analog stick in virtual pad fixes #1612 2019-12-29 09:47:53 -05:00
adelikat 70840c1b54 remove some unused code, and a few other misc cleanups 2019-12-06 19:22:54 -06:00
adelikat d65092e967 Misc cleanups in tool dialogs - mostly the use of expression body (C#6/C#7isms) 2019-10-29 09:27:56 -05:00
YoshiRulz 7cbd1decc1 It was a bug 2019-06-14 16:26:31 +00:00
YoshiRulz 1c0622d272 Move polar<=>rect conversion to new class 2019-06-14 16:26:31 +00:00
YoshiRulz 7e244be91a Inline event subscription 2019-06-14 16:26:31 +00:00
YoshiRulz 9b1eaca7be
Re-allow PadInputType.AnalogStick with reversed ranges
N64 standard controller in virtual pad no longer crashes
2019-06-11 05:11:24 +10:00
James Groom 6b56a65d11
Add MutableIntRange and float.RoundToInt and refactor AnalogStickPanel 2019-04-01 14:41:08 +11:00
adelikat d18a512db8 Saturn - virtualpad support for 3d controller, however, analog stick needs some fixes to support the large analog range of the stick 2017-06-11 14:45:18 -05:00
adelikat 50b5f4a1a9 Virtualpad misc cleanups 2017-05-24 09:07:03 -05:00
nattthebear ebe789eed2 heh 2017-05-10 07:45:23 -04:00
adelikat ba4af238b7 VirtualPads - PSX NeGcon support, also slider controls now support vertical orientation 2017-04-29 14:47:51 -05:00
adelikat d954512214 Virtual Pads - Analog Sticks - check min and max range before setting the value. Fixes #686 2016-09-21 10:13:30 -04:00
Hathor86 9a4dd89f7f Fix polar coord when center is non-zero
The range is now used to compute right angle / ray value even if the
center is not 0,0
Tested for N64 and PSX, should probably work for every system :)
2016-06-14 19:31:54 +02:00
zeromus 9aceb512f0 fix automation of virtualpad analogsticks from movie playback 2016-03-21 16:13:49 -05:00
Hathor86 f145f3cc68 Polar Coord
- Add polar coordinates to VirtualPadAnalogStick
- Update N64 pad Schema as VirtualPadAnalogStick is a bit larger
- Add Clamp method to NumberExtensions (allows a IComparable<T> value to be restriced between 2 specified other values)
2016-01-23 22:56:41 +01:00
zeromus 0787a3be47 rework virtual pad analog widget to support n64 and psx simultaneously 2015-07-19 21:46:52 -05:00
adelikat 73c1bedd9e Virtual Pad buttons - don't do anything on space, tab, and shift+tab 2015-02-14 03:51:29 +00:00
zeromus 9b5a5e69d4 psx - improve behaviour of initial disc state at frame=0 2015-01-12 07:32:52 +00:00
jdpurcell 4ae3060ae5 Fix/cleanup override X/Y stuff. 2015-01-01 22:20:19 +00: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
jdpurcell eacadc8e09 Apparently UserControls that are created dynamically need AutoScaleMode.Font. UserControls placed via the designer should use AutoScaleMode.Inherit. Actually it seems possible to get around the problems of dynamically created UserControls (including the need to manually scale the positions/sizes) by moving their creation into the constructor after InitializeComponent, adding SuspendLayout before InitializeComponent, and adding ResumeLayout after UserControl creation. But I don't want to risk moving the code around too much. 2014-12-31 05:34:21 +00:00
jdpurcell 30d3b02a7f Auto scaling: All forms should have AutoScaleMode set to Font.
Auto scaling: All user controls should have AutoScaleMode set to Inherit (i.e. they inherit their containing form's AutoScaleMode, in this case Font). Explicitly setting an AutoScaleMode on user controls causes problems with child controls anchored to the bottom and/or right.
Remove explicitly set font in GenGameGenie form. Fonts set on the form/user control level cause problems with auto scaling.
Fix text box anchoring in DualGBFileSelector control.
2014-12-28 21:19:34 +00:00
zeromus 4dc4745122 psx - revise disc swapping method. way cooler now, you get a list of discs in the virtualpad box, and changing between them maps to physical operations more logically. 2014-12-19 03:24:48 +00:00
zeromus c43dd9fc34 psx - revise disc switch schema stuff; add MinValue support to analog button and tweak the pip positioning 2014-12-16 03:15:27 +00:00
zeromus e28bcf9982 unsticky analog controls when rightclicking the circle visualizer 2014-10-10 00:07:45 +00:00
zeromus 98a5016b20 fix bug that made virtualpad permanently override actual physical analog control 2014-10-09 02:19:10 +00:00
zeromus 977f7ff0dd dont draw garbage in shrunken virtualpad analog circle 2014-10-09 01:53:52 +00:00
zeromus d753b74e33 small experiment for virtualpad: clicking buttons returns control to main window. super hacky, but might work for now. analog circle control will still need help. numberupdown for analog control is probably hopeless. 2014-10-09 01:51:27 +00:00
adelikat e07f143e88 Virtualpads - make analog stick a lot faster in record mode 2014-07-26 22:02:21 +00:00
adelikat dc8fa8bd87 Virtualpad - another performance improvement for Analogstick controls 2014-07-26 17:22:58 +00:00
adelikat 9210b4d9a1 Greatly improve performance of the virtualpad tool, most configurations will have no speed cost unless there is no movie, movie speeds are much improved. 2014-07-26 17:11:47 +00:00
adelikat b69b141a05 VirtualPads - fix issue 225 - properly clear the analog stick when right-clicking 2014-07-26 13:59:06 +00:00
adelikat b9bb1635a1 more tweaks to the Analog Stick variable size logic, and positioning fixes to Genesis mouse schema 2014-07-06 17:02:35 +00:00
adelikat 2225811743 Virtualpad Analog stick - refactor to be variable size instead of a hardcoded 127, Implement Genesis mouse as a 255 analog stick. Note: some positioning bugginess is present in this check in, and probably some things got broken 2014-07-06 16:44:50 +00:00
adelikat e5b5daeaa0 VirtualPad Analog button - if not in sticky mode, update every frame with the current value, and a slight tweak to read-only view 2014-07-04 15:40:21 +00:00
adelikat c3b57a6ddf VirtualPad Analog button - show when the virtualpad is stickying the float value 2014-07-04 15:34:07 +00:00
adelikat 5c8cf8b141 Virtualpad Target screen - cleanup some unneeded code 2014-07-04 15:12:14 +00:00
adelikat 3b9d99f763 Virtualpad Target screen - show when the virtualpad is sitckying the X,Y values 2014-07-04 15:09:10 +00:00
adelikat 07a337de46 Virtualpad Target Screen - fix to mouse up behavior 2014-07-04 14:25:33 +00:00
adelikat 69ea80882d Virtualpad - Targeting widget - hackery to fix movie playback 2014-07-04 00:44:57 +00:00
adelikat 49955a3447 Virtualpads - targeting pair - support ability to set a range to translate values to, and set genesis lightgun to 10000 2014-07-04 00:04:18 +00:00