keycode.go 996 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // https://github.com/go-vgo/robotgo/blob/master/LICENSE
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. package robotgo
  11. import (
  12. "github.com/vcaesar/keycode"
  13. )
  14. type uMap map[string]uint16
  15. // MouseMap robotgo hook mouse's code map
  16. var MouseMap = keycode.MouseMap
  17. const (
  18. // Mleft mouse left button
  19. Mleft = "left"
  20. Mright = "right"
  21. Center = "center"
  22. WheelDown = "wheelDown"
  23. WheelUp = "wheelUp"
  24. WheelLeft = "wheelLeft"
  25. WheelRight = "wheelRight"
  26. )
  27. // Keycode robotgo hook key's code map
  28. var Keycode = keycode.Keycode
  29. // Special is the special key map
  30. var Special = keycode.Special