#UserInputService question
1 messages · Page 1 of 1 (latest)
You can just use userinputservice.inputbegan/ended btw
Use UserInputService:IsKeyDown
Otherwise combine UserInputService.InputBegan with UserInputService.InputEnded
thats literally worse
why would he poll this shit
when he can use event driven approach
dont listen to ziffix and use InputBegan with InputEnded
or actions
That is an overreaction. There are no performance ramifications. Regardless, I did immediately suggest that OP use a combination of InputBegan and InputEnded. UserInputService:IsKeyDown is simply consistent with his original design
No harm in knowing your alternatives
IsKeyDown is fine on its own but if hes dropping it in a while true loop its still polling every frame for something that only changes on a keypress
so I would have to agree with the bay harbor ragebaiter
the os gives you interrupts for input events, its not a polling loop under the hood
lmao
please stop embarassing urself
when you press a key the keyboard sends a hardware interrupt to the OS which queues the event, roblox picks it up and fires InputBegan. theres no loop