jsdf / pce

Emulates Mac Plus, PC, & Atari ST in the browser using WebAssembly
https://jamesfriend.com.au/pce-js
GNU General Public License v2.0
864 stars 154 forks source link

Remap command? #9

Open cantino opened 9 years ago

cantino commented 9 years ago

Is there a way to re-map command so that it goes to the emulator? That is, could option or control be sent as command to the emulated mac?

jsdf commented 9 years ago

I believe PCE lets you load a key mapping file, which might do the job for you

jsdf commented 9 years ago

Alternatively you could try modifying emscripten's implementation of SDL (library_sdl.js) to do your key remapping, or you could modify the mappings in the C code

cantino commented 9 years ago

Thanks, will give it a shot!