Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. -- Put this into custom.lua in your T:A config folder
  2. local current_gamma = 2.2
  3. local gamma_low = false
  4.  
  5. function gammaPlus()
  6.     current_gamma = current_gamma + 0.1
  7.     gamma(current_gamma)
  8. end
  9.  
  10. function gammaMinus()
  11.     current_gamma = current_gamma - 0.1
  12.     gamma(current_gamma)
  13. end
  14.  
  15. function gammaToggle()
  16.     current_gamma = gamma_low and current_gamma + 1.2 or current_gamma - 1.2
  17.     gamma_low = not gamma_low
  18.     gamma(current_gamma)
  19. end
  20.  
  21. bindKey("B", Input.PRESSED, gammaMinus)
  22. bindKey("B", Input.REPEAT, gammaMinus)
  23. bindKey("N", Input.PRESSED, gammaPlus)
  24. bindKey("N", Input.REPEAT, gammaPlus)
  25. bindKey("M", Input.PRESSED, gammaToggle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement