switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulate press button

jonyluke opened this issue · comments

Is there a function or something that for example press button A, without touching the button physically?

There definitely is no such thing in libnx right now but there are ipcs that sound like this might not be a huge undertaking to add.

https://reswitched.github.io/SwIPC/ifaces.html#nn::hid::IHidDebugServer(0)

https://reswitched.github.io/SwIPC/ifaces.html#nn::hid::IHidServer(1)

What use-case? For overriding input in another process? If so, the above doesn't really apply... #152

It is for doing a module to automate games, for example in Mario Party, you can leave the game playing itself pressing A all the time and return when you want to play as usual.

Yeah no, see #152