Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Collections;
  7. using System.Windows.Forms;
  8.  
  9. namespace loginform
  10. {
  11. class Input
  12. {
  13. private static Hashtable keyTable = new Hashtable();
  14. public static bool KeyPress(Keys key)
  15. {
  16. if (keyTable[key]==null)
  17. { return false; }
  18. return (bool)keyTable[key];
  19. }
  20. public static void changeState(Keys key, bool state)
  21. {
  22. keyTable[key] = state;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement