home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / linux / extra / docs / maillist / text / archive.96 / text1568.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  3.2 KB  |  69 lines

  1. I've discovered a problem in the way Executor handles CAPSLOCK.  Please 
  2. allow me to explain.
  3.  
  4. On typical Macs, the Caps Lock key is a simple LOCKING mechanical switch.  
  5. Like most mechanical switches, it can be in either one of two states: OFF 
  6. and ON.  (will be represented by 0 and 1, respectively)  Since the Mac's 
  7. CAPS LOCK button is LOCKING, if you push it once, it "clicks" and stays 
  8. down, thus the CAPS LOCK key is set to the 1 state until you press it 
  9. again and "click" it off.
  10.  
  11. On the PC, it is different.  Again, the PC's CAPS LOCK key is a simple 
  12. mechanical switch, and can be either turned on (1) or off (0).  BUT, the 
  13. PC's CAPS LOCK key is NOT a locking key -- it does not stay down when you 
  14. press it.  Thus, if you press the CAPS LOCK KEY once, it toggles briefly 
  15. to the ON (1) state, then returns to the OFF (0) state.  The KEYBOARD 
  16. CONTROLLER in the PC is responsible for handling capslock, and so it 
  17. isn't as simple as on the Mac.
  18.  
  19. So, how does this affect Executor?
  20.  
  21. The other night, I was playing Maelstrom.  Suddenly the phone rang.  I 
  22. said "Damn!" and went to pause the game.  To do this you turn on Caps 
  23. Lock.  Well, unfortunately, here's what happend: for the BRIEFEST of time 
  24. (about 1 second), the "Game Paused" screen flashed on... then, the game 
  25. resumed again.  "Eh?" I thought.  Well, my game was toast anyway, so I 
  26. quit to dos and checked my caps lock key.  It worked ok, all right.  So 
  27. then I thought it might be a bug in how Maelstrom runs under Executor.  
  28. So I tried a different application -- Microsoft Word.  I engaged the CAPS 
  29. LOCK and typed in some stuff.  Darn it, but the stuff didn't appear in 
  30. caps!  "Feh!"
  31.  
  32. Well, after some experimentation (and hair-pulling), I discovered that:
  33.  
  34. * Maelstrom will stay paused if I hold down the CAPS LOCK key.  The
  35.   minute I let it go, the game resumes.
  36. * I can type capital letters in MS Word, TexEdit, etc... IF I hold down 
  37. the CAPS LOCK key while doing so.  The minute I release it, back to lower 
  38. case.
  39.  
  40. During all of these shenanigans, the CAPS LOCK light on my keyboard is 
  41. on, though!!!
  42.  
  43. My guess is that, instead of checking the PC's keyboard controller or 
  44. whatever else that controls the PC's caps lock facility, Executor is 
  45. using the state of the CAPS LOCK KEY ITSELF (down or up?) to determine 
  46. caps lockishness.  So, since the caps lock in PC"s is done by software (a 
  47. control bit in the PC keyboard controller or whatever) rather than 
  48. Hardware (a physical key being "locked down") as is on the Mac, programs 
  49. like Maelstrom and MS Word, which probably work like this:
  50.  
  51.   if (caps_lock_key == PRESSED_DOWN)
  52.   {
  53.     printf("Game Paused - Unclick Caps Lock to continue");
  54.   } else do_game();
  55.  
  56. do not work right.
  57.  
  58. I know many people don't use CAPS LOCK out there, but many people do, and 
  59. anyway it would probably be a good thing to fix or at least investigate ASAP.
  60.  
  61. This is under E/DOS 1.99q11.  Oddly enough, the caps lock works perfectly 
  62. under E/Linux 1.99q9.
  63.  
  64. Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212
  65. TEL (805)564-1871 / FAX 564-2315 / WWW http://www.geopages.com/WallStreet/2072
  66. PGP Public Key available by request (send e-mail) or on Public Key Servers.
  67. ** Uphold your right to privacy - Use PGP. **
  68.  
  69.