Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

38 rader
1.2 KiB

  1. // This code is distributed under MIT license.
  2. // Copyright (c) 2015 George Mamaladze
  3. // See license.txt or https://mit-license.org/
  4. using Gma.System.MouseKeyHook.Implementation;
  5. namespace Gma.System.MouseKeyHook
  6. {
  7. /// <summary>
  8. /// This is the class to start with.
  9. /// </summary>
  10. public static class Hook
  11. {
  12. /// <summary>
  13. /// Here you find all application wide events. Both mouse and keyboard.
  14. /// </summary>
  15. /// <returns>
  16. /// Returned instance is used for event subscriptions.
  17. /// You can refetch it (you will get the same instance anyway).
  18. /// </returns>
  19. public static IKeyboardMouseEvents AppEvents()
  20. {
  21. return new AppEventFacade();
  22. }
  23. /// <summary>
  24. /// Here you find all application wide events. Both mouse and keyboard.
  25. /// </summary>
  26. /// <returns>
  27. /// Returned instance is used for event subscriptions.
  28. /// You can refetch it (you will get the same instance anyway).
  29. /// </returns>
  30. public static IKeyboardMouseEvents GlobalEvents()
  31. {
  32. return new GlobalEventFacade();
  33. }
  34. }
  35. }