MouseX Axis Value returns 0

Hey guys,

I’m currently trying to get a return value from MouseX, but it’s always returning 0 no matter how I move the mouse. The cursor is captured when the project starts. Here are the important methods

229880-mousexfunction.png

229891-projectsettings.png

][3]

Did you set up the input axis in your project settings? BindAxis() goes off of that so you need to map the MouseX input to your own input axis. Give it any name you want (but map it to MouseX) and use that name in the bind-string. In case you don’t know, it’s in (Project Settings)->Input.

I can’t even find the “MouseX” setting you show when I look in my project settings. And it doesn’t look like an input axis entry.

Oh, I see it now. Yeah. That tweaks the settings but it’s not what you want to bind to. You have to do it indirectly with your own binding as I described (extra info: in Bindings->AxisMappings, click the + button).

That was it! I thought having them in Axis Config was enough, but I was wrong