Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Keyboard.IsAlt attribute  (Read 9172 times)

0 Members and 1 Guest are viewing this topic.

rice

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Keyboard.IsAlt attribute
« on: June 16, 2014, 04:04:50 PM »

I'm using the latest beta build (1.10.1) on Windows 7.  I added the following code to the Keypress event in game.script in the wme_demo project.  Nothing else in the project has been modified.

Code: WME Script
  1. if(Keyboard.KeyCode==VK_HOME && Keyboard.IsAlt==true)
  2. {
  3.   actor.Talk("You said the magic word.");
  4. }
  5.  

Pressing Alt+Home does not produce the line of text.  Strangely, Ctrl+Alt+Home works!  Replacing IsAlt with IsControl or IsShift makes the code work as expected. e.g. Ctrl+Home and Shift+Home will call the statement inside the block.

Note:  I've tried replacing VK_HOME with other keyboard codes just to make sure that wasn't some special binding, and the behavior is unchanged.
Logged
 

Page created in 0.213 seconds with 22 queries.