I am trying to get input from another process and calling swa_display_key_pressed periodically seem like worse solution than changing value on press and release in key callback.
Set swa_window_settings.listener to an object with the swa_window_listener.key callback set to a function of yours when you create the window. The function will be called on key release.
I am trying to get input from another process and calling swa_display_key_pressed periodically seem like worse solution than changing value on press and release in key callback.