Jump to content

Recommended Posts

Posted (edited)

TARGET won't send Win key combos.

 

Simple test script.

 

[color=#1e90ff][b]include[/b][/color] [color=#a52a2a]"target.tmh"[/color]

[color=#32cd32]//program startup[/color]
[color=#1e90ff][b]int[/b][/color] main()
{


   [color=#1e90ff][b]if[/b][/color][color=#ffffff]([/color]Init(&EventHandle)) [color=#1e90ff][b]return[/b][/color] [color=#ffffff]1[/color]; [color=#32cd32]// declare the event handler, return on error[/color]
         
         [color=#32cd32]//add initialization code here[/color]
MapKey(&Joystick[color=#ffffff],[/color]H4U[color=#ffffff],[/color]L_WIN+[color=#a52a2a]'e'[/color]);
MapKey(&Joystick[color=#ffffff],[/color]H4D[color=#ffffff],[/color]PULSE[color=#ffffff]+[/color]L_WIN+[color=#a52a2a]'e'[/color]);
}

[color=#32cd32]//event handler[/color]
[color=#1e90ff][b]int[/b][/color] EventHandle[color=#ffffff]([/color][color=#1e90ff][b]int[/b][/color] type, [color=#1e90ff][b]alias[/b][/color] o, [color=#1e90ff][b]int[/b][/color] x)
{
   DefaultMapping(&o, x);
         
         [color=#32cd32]//add event handling code here[/color]
}

Just get L_WIN key press.

Tried fooling around with KB rate but no joy.

Any thoughts?

Edited by SGT Coyle
[Solved]

Night Ops in the Harrier

IYAOYAS


 
Posted
Thanks,

I knew it had to be simple.

I've been banging my head looking for info.

 

Easier still use USB code in Target

 

L_WIN = USB[232]

R_WIN = USB[227]

 

note the square brackets.

 

Just insert USB[232] where you need it.

 

Cheers

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...