Wintermute Engine Forum

Wintermute Engine => Bug reports => Topic started by: rice on June 16, 2014, 04:04:50 PM

Title: Keyboard.IsAlt attribute
Post by: rice 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. }

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.