Advertisement
IdoX10

test

Oct 28th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. hook.Add("Think", "HookKeyManagement", function()
  3. for i=1, 159 do
  4. if(!vgui.CursorVisible) then break; end;
  5.  
  6. if(input.WasKeyPressed(i)) then
  7. hook.Call("KeyPressed", nil, i);
  8. end;
  9.  
  10. if(input.WasKeyReleased(i)) then
  11. hook.Call("KeyReleased", nil, i);
  12. end;
  13. end;
  14.  
  15.  
  16.  
  17. end);
  18.  
  19.  
  20. hook.Add("KeyReleased", "TestShiftBlablabla", function(Key)
  21. if(Key == KEY_LSHIFT) then
  22. print("hello world")
  23.  
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement