Get axis rotation

Hi Answer Hub,

I have the standard Gamepad Left Thumbstick mappings for MoveForward on Y axis and MoveRight on X Axis ranging 1 to -1, what I’m attempting to do is create an event when both X and Y are 0,0, what would be the best way?

Many thanks

Maybe, that is not the best approach, but you can just use static FVector variable in cpp (static inside a file) and update x and y according to X and Y axis. After every update you can simply check their product with SMALL_NUMBER for example and broadcast delegate if condition is true.

Thanks for the reply , you’re right, it’s the wrong approach. I’m actually trying to get the input when the y axis = 0 to set the event but the problem is I still need x axis movement; however x axis movement 1, -1 intersects the y axis = 0 and sets off the event. Is there away to set the event when the y axis = 0 but movement on the x axis =1, -1 will not set the event? Any help would be appreciated

Project settings and Gamepad Deadzone values to 0 workded :slight_smile: