Condition that returns true if a mobile thumbstick is being moved forward?

While trying to detect if a player is pressing forward while in a seat (not a VehicleSeat) I discovered that using Enum.KeyCode.W for mobile players doesn’t return true like it does on PC (which I assumed it did for ease of use, how naive I was to assume :roll_eyes: )

Is there anything similar to Enum.KeyCode.W that’s usable in the same if statement as I already have instead of having to calculate directions based on GetMoveVector()?

1 Like

Looks like you’re already familiar with the UserInputService. Don’t quote me but I believe it registers as a GamePad and comes through as Enum.KeyCode.Thumbstick1 or Enum.KeyCode.Thumbstick2.

I’ve never tried messing around with mobile controls though so maybe someone else can chime in. InputObject.Position should have a Vector3 representing the position of the Thumbstick.

1 Like