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

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