Andrew Collier wrote: > One idea you could consider, which Ian described to me (I think he'd used > it in his X spectrum emulator) would be that Left-Shift produces the > keystroke you'd expect from looking at your PC's keyboard (eg, left-shift > and '0' gives ')') wheras Right-Shift directly corresponds to the Shift key > on the Sam (eg, right-shift and '0' gives '~').
I tend to use the different shift keys fairly interchangably when typing, depending on what I'm shifting to get at, which would give very strange results! Instead I've got 3 keyboard modes to choose from: 1) Raw, which doesn't do any magic, so shift-0 gives ~ (as on a real SAM) 2) SAM mode, which does SAM-specific key translations so shift-0 gives ) (as on the PC) 3) Spectrum mode, which does Spectrum-specific key translations, so shift-0 gives ) with the Spectrum ROM or | in SAM BASIC (from symbol-9 as needed by the Spectrum) Switching between SAM and Spectrum system modes in the menu automatically selects the relevant keyboard mode, but you can override it after that if you like. > Then again, not all keyboards can distinguish between left and right shift, > including all USB keyboards I've tried. Some of the Win32 keyboard functions don't distinguish between left and right versions, except under NT/W2K. WinCoupe uses DirectInput for keyboard reading, which gives a table of raw key states in scancode order, and does distinguish between left and right versions on all platforms. I've not got access to any USB keyboards to try it out... if they're cheap enough I might give it a try! > Frankly, the idea of implementing all this on the iMac is giving me nightmares... Join the SimCoupe nightmare club! ;-) btw, did you ever ask Richard Bannister about the MacCoupe (hehe!) source code? From what I remember, he was offering to pass it on to someone that could continue to develop it... Si

