x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

alt text

alt text

![alt text][3]

Product Version: UE 4.18
Tags:
more ▼

asked Feb 07 '18 at 10:38 PM in C++ Programming

avatar image

Cd1232
10 7 8 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Feb 07 '18 at 10:55 PM

avatar image

Jin_VE
4.4k 32 79 42

avatar image Jin_VE Feb 07 '18 at 10:59 PM

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.

avatar image Jin_VE Feb 07 '18 at 11:01 PM

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).

avatar image Cd1232 Feb 08 '18 at 12:10 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question