u/Krasapan

Is it possible to have smooth movement hold input in an unfocused window?

So I have two game instances and want to broadcast WASD input to the unfocused instance. Example: unfocused instance - driver, drives the vehicle, focused instance - gunner, my main game window with native input to shoot the enemies.

I've tried other existing scripts, but they are either "hold key for 500 ms when triggered" or "do single press", and if I loop one, "window fighting" occurs, when window is being repeatedly focused and unfocused, which makes the game unplayable

(I've asked AI for help, but it couldn't write a correctly working script either)

reddit.com
u/Krasapan — 14 days ago