Difference between revisions of "Talk:IsControlPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Shademe
(Detecting the second control pressed)
 
imported>DragoonWraith
Line 1: Line 1:
== Detecting the second control pressed ? ==
== Detecting the second control pressed ? ==


How do I detect if a second control was pressed ( not held down ) when detecting the 1st control pressed , i.e., I'm holding down the grab key and I want to check if the activate key was pessed during that time, when I was holding the grab key ... -- [[User:Shademe|shademe]] 08:19, 18 September 2008 (EDT)
How do I detect if a second control was pressed ( not held down ) when detecting the 1st control pressed , i.e., I'm holding down the grab key and I want to check if the activate key was pessed during that time, when I was holding the grab key ... -- [[User:Shademe|shademe]] 08:19, 18 September 2008 (EDT)
if ( IsControlPressed 28 )
  if ( OnControlDown 5 )
    ;code goes here
  endif
endif
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 08:43, 18 September 2008 (EDT)

Revision as of 07:43, 18 September 2008

Detecting the second control pressed ?

How do I detect if a second control was pressed ( not held down ) when detecting the 1st control pressed , i.e., I'm holding down the grab key and I want to check if the activate key was pessed during that time, when I was holding the grab key ... -- shademe 08:19, 18 September 2008 (EDT)

if ( IsControlPressed 28 )
  if ( OnControlDown 5 )
    ;code goes here
  endif
endif
Dragoon Wraith TALK 08:43, 18 September 2008 (EDT)