Thursday, March 22, 2018

Keen Modding Live - Alternative controls

A Keen Modding user reminded me today that, on some browsers, the Alt key triggers some browser behavior even when keyboard input is supposed to be directed to the web app. This is a problem for Keen Modding Live, since the pogo key is Alt. The user suggested Z/X/C as an alternative to Control/Alt/Space. I went through the original games and generated configuration files (CTLPANEL.CKx, CONFIG.CKx, KDREAMS.CFG) with those key mappings and added some code to inject the appropriate one into the DOSBox instance if the user chooses. The player page now has an extra row of buttons by the difficulty selector, allowing them to switch between Control/Alt/Space and Z/X/C. Just like with difficulty, this preference is recorded in the user record for future level plays.

No comments:

Post a Comment