Advertisement
MMMonster

[LIB] GTA5 (1.43_SC) InputHandler Library! by TG13

Mar 31st, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. Import "gta5ih.lib"
  2.   GTA5_GetInput(*Output)
  3. EndImport
  4.  
  5.  struct POINT
  6.    x   dw 0h
  7.    y   dw 0h
  8.  ends
  9.  
  10.  struct GTA5_IH_STATE
  11.    KeyBoardLastKey   dw 0h;- get the last Key that was pressed!
  12.    MouseButtonAny    dw 0h;- is '1' If any MouseButton is pressed Or '2' If both MouseButtons are pressed otherwise '0'!
  13.    MouseButton       dw 0h;- is '1' If MouseButton 1 was pressed Or '2' If MouseButton 2 was pressed And '3' If both are pressed otherwise '0'!
  14.    Mouse             POINT;- mouse position
  15.  ends
  16.  
  17. ;-> Call the function when injected: GTA5_GetInput(@GTA5_IH_STATE)
  18. ;Note: The very first call to GTA5_GetInput will only 'initialize' the function!
  19. ;loop...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement