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: Bug: F1 and p  (Read 4544 times)

0 Members and 1 Guest are viewing this topic.

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Bug: F1 and p
« on: July 09, 2003, 02:49:35 PM »

Hi,

that's a funny one, probably some little hardcoded forgotten test ?

The keys "F1" and "p" (Keycodes "VK_F1" and "80") are treated as the same key.

I found that when I wanted to use "p" for a verb command. "P" (Code 112) is working as expected. But "p" always called the Options Menu - and it stopped doing this when I removed the "VK_F1" trigger as used in the demo. But now I could use my verb command with the F1 key too... :)

I guess it was used for "pause" once ?

Waiting for release 1.0.031... ;)

Logged
Mooh!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Bug: F1 and p
« Reply #1 on: July 09, 2003, 03:09:45 PM »

Um, nope, it's not a bug. The Fx keys really use the same codes as some of the characters. You'll have to check the Keyboard.Printable attribute to fully distinguish between those keys...

http://www.dead-code.org/forum/index.php?board=1;action=display;threadid=98
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re:Bug: F1 and p
« Reply #2 on: July 09, 2003, 03:53:12 PM »

Hi Mnemonic,

Um, nope, it's not a bug. The Fx keys really use the same codes as some of the characters. You'll have to check the Keyboard.Printable attribute to fully distinguish between those keys...
http://www.dead-code.org/forum/index.php?board=1;action=display;threadid=98

AAAH! I even remember now odnorf writing about that, I just forgot and it seems the time has come where we have to search the forum for problem solutions before writing them down again. And time for a new "RTFM" smiley... a good sign for WME anyway! ;)

Thanks for helping again, now it works!
Logged
Mooh!

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Bug: F1 and p
« Reply #3 on: July 09, 2003, 03:59:25 PM »

I think it's better to answer a question twice than to have to fix a bug :)

I admit the keyboard behavior is a bit weird. I simply adopted the Windows key codes and somehow I didn't realize this problem of duplicate codes...
But hopefully the Printable attribute is good enough to resolve this.
« Last Edit: July 09, 2003, 04:03:02 PM by Mnemonic »
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.038 seconds with 23 queries.