Please login or register.

Login with username, password and session length
Advanced search  


Forum rules - please read before posting, it can save you a lot of time.

Author Topic: key codes  (Read 4390 times)

0 Members and 1 Guest are viewing this topic.


  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1455
  • 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 »


  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5681
    • 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.
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.278 seconds with 24 queries.