<div dir="ltr"><div>I just now noticed that this bit breaks a few of the keyboard controls for Don't Eat Soap.</div><div><br></div><div>Possibly a result of having manual scripting that checks both joysticks and keyboard keys and now some of those checks return true twice for a keyboard key.</div><div><br></div><div>Not a big deal, I'm sure it will be an easy fix, I just wanted to mention it in case we run across any other similar issues with old games that scripted for joystick support.</div><div><br></div><div>---</div><div>James Paige</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 12, 2019 at 9:04 AM Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This bit is a quick fix; I might replace it later with detailed<br>
settings for defining the joystick to keyboard mapping.<br>
I also wanted to extend it to map 3rd and 4th (and more) joystick<br>
buttons to Z and Shift, since I think those are the most common<br>
special keys used ... or maybe Z and X? Currently 3rd and 4th buttons<br>
are alternative Use and Cancel. But maybe there are some joysticks<br>
where 3rd and 4th buttons are 'handier'/more primary than 1st and 2nd.<br>
<br>
Also, it seemed kind of odd to have a settings to stop joysticks from<br>
acting like keyboard controls for scripts only, but not have any way<br>
to prevent joystick controls from working for moving the hero.<br>
But I think that should probably be a separate setting: Currently, you<br>
could say that keyboard, mouse, and all joysticks control player 1,<br>
but if you enable multiplayer controls (similar to how Ouya controls<br>
currently work) then the first joystick might become assigned player<br>
2. And in that case, Left on joy 1 shouldn't register as key:left if<br>
you're reading player 1's controls regardless of this bit.<br>
<br>
Also it would be worth testing with some games that actually do use<br>
joystick script commands. I recall you suggested that only Ouya games<br>
might have actually cared about distringuishing between different<br>
controllers/keyboard.<br>
<br>
On Tue, 12 Feb 2019 at 23:45, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br>
><br>
> Oh, cool! I can't wait to try this out!<br>
><br>
> (Just need to order a gamepad and wait for it to ship!...)<br>
><br>
> On Tuesday, February 12, 2019, <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br>
>><br>
>> teeemcee<br>
>> 2019-02-11 22:05:02 -0800 (Mon, 11 Feb 2019)<br>
>> 75<br>
>> Add "Map joystick controls to keyboard keys for scripts" bit, on by default<br>
>> ---<br>
>> U   wip/common_menus.bas<br>
>> U   wip/docs/plotdict.xml<br>
>> U   wip/ohrhelp/general_game_bitsets.txt<br>
>> U   wip/scriptcommands.bas<br>
>> U   wip/whatsnew.txt<br>
>> _______________________________________________<br>
>> Ohrrpgce mailing list<br>
>> <a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
>> <a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
><br>
> _______________________________________________<br>
> Ohrrpgce mailing list<br>
> <a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
> <a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>