c# - Mouse and Keyboard hooking in UWP : Raw input VS KeyEvents VS Global Hook -


i'd hook mouse , keyboard in uwp app, , i'm wondering best between raw input, global hook , simple xaml key events.

put simple, i'm developing uwp application streams game (rendered using cloud server, nvidia grid) , i'd hook user events (keyboard , mouse) tell server user moving in game (for example).

i thought several approaches:

  • creating windows runtime component in c++/cx consumed universal app in c#. component use either raw input or global hook raise mouse or keyboard event , send uwp app.
  • simply use key events, keydown , pointermoved events on grid or ui element , listen it.

the output sent server using socket connection.

what best solution performance , simplicity?

it seems key events allowed hook input in uwp.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -