Quantcast

Jump to content

» «
Photo

ScriptHook help and Button handling

1 reply to this topic
Jakes625
  • Jakes625

    Player Hater

  • Members
  • Joined: 06 Jul 2013

#1

Posted 06 July 2013 - 01:43 PM

Hey, I recently started modding gta4 and I would like to create my own scripts using the library "ScriptHookDotNet.dll", I have programmed for 3 years in C# and C/C++. Does each class run automatically by the loader, as long as you link with : script ? Also does this library support xbox controller button handling or only windows? (ie: Keys.Alt)

Thanks,

julionib
  • julionib

    Coder

  • Feroci
  • Joined: 13 Sep 2012
  • Brazil

#2

Posted 07 July 2013 - 04:36 PM

about the first question i cant help

about second, you can use the game native calls to obtain the info about xbox control:

http://pastebin.com/hYyUaq9F

i created this class for this pourpose, my actual code is a little different but not too much, its on VB.net, i guess that you probably will use C#, so basically you can see how i obtain the info in taht class and create your own or simple use the methods biggrin.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users