How to get IsMouseButtonDown?

Hi there,

Im trying to have a function within a widget detect wether or not the mouse button is pressed, but the ‘IsMouseButtonDown’ function node is requesting a PointerEventStructure as an input and I don’t know where I can get one.

How can I provide that input, and why do I need it?

So I noticed that you can use the MouseEvent input when calling ‘IsMouseButtonDown’ from a widget event, such as OnMouseMove or OnMouseButtonDown, but how can I test wether the Mouse button is down from within a timer function?

Are you able to use GetPlayerController → IsInputKeyDown LeftMousebutton → branch

1 Like

awesome, thanks!