Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: key codes  (Read 6861 times)

0 Members and 1 Guest are viewing this topic.

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
key codes
« on: April 12, 2003, 02:54:17 PM »

My games' interface works in two ways. The first one is an interface similar to the one in the wme_demo and the second one is only shortcuts (it's faster). But I have one problem. It seems that some key codes (ASCII codes???) are the same for different keys. For example "t" keycode is 116 same to F5, "u" keycode is 117 same to F6...etc. It's not a great issue but is there a way to solve this problem by scripting?

My english sucks so I only hope that what I said makes sense to you. If not please ask me to make it more clear (if I can).
« Last Edit: April 12, 2003, 02:56:56 PM by odnorf »
Logged
fl*p

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:key codes
« Reply #1 on: April 12, 2003, 04:06:44 PM »

You can differentiate between those two by querying the Keyboard.Printable attribute. While it will return true for the "t" character, it will be false for the F5 key.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.02 seconds with 24 queries.