<p></p>
<p>Pressing Space or Ctrl results in <code>key is pressed(key:enter)</code> returning true if the "Map joystick controls to keyboard keys for scripts" general pref bit is on -- and it is by default in all games since -- and ditto for Alt and ESC.</p>
<p>This is caused by this block in <code>script_keyval</code> (added r10966 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ohrrpgce/ohrrpgce/commit/daaad7687c5c19507056ad30622db3ccdaa4f545/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/commit/daaad7687c5c19507056ad30622db3ccdaa4f545"><tt>daaad76</tt></a>)):</p>
<pre><code> IF prefbit(47) = NO THEN  '!Map joystick controls to keyboard keys for scripts
  SELECT CASE key
   CASE scUp:     ret OR= keyval(ccUp)
   CASE scDown:   ret OR= keyval(ccDown)
   CASE scLeft:   ret OR= keyval(ccLeft)
   CASE scRight:  ret OR= keyval(ccRight)
   CASE scEnter:  ret OR= keyval(ccUse)
   CASE scEsc:    ret OR= keyval(ccCancel)
  END SELECT
 END IF
</code></pre>
<p>Unfortunately this is a bit tricky to fix without breaking this prefbit because of the way <code>carray</code> is now computed. I think I need to refactor that code in allmodex to give each input device its own carray array, so that we can check just the joystick carray and map that to keyboard keys.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1106">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZQ27OB467PFUHLYO6LRH52VDANCNFSM4LNNQZVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZVGEJSMO26ZFTA45SLRH52VDA5CNFSM4LNNQZVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IWAAUDA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1106",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1106",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>