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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Cannot get mouse inputs to work

Hi all. I have watched numerous tutorials on player input, searched various posts on the forums, and cannot seem to find something that works.

Basically, I am trying to have a vehicle that accelerates when the mouse-wheel is scrolled down (like one mouse wheel click is 10% acceleration, and 10 clicks is full acceleration -- like an RPM gauge), and vise versa with mouse wheel up. And also trying to get the left/right mouse movements to yaw the vehicle side to side while moving.

I can get the mouse to work for looking around, but that's it. I can't get any of the buttons to do anything, even at a very basic level. Here's the current setup:

alt text

alt text

But I have tried numerous other setups as well, such as the one from this thread (which doesn't even work for me): https://answers.unrealengine.com/questions/109252/setting-mouse-buttons-as-movement.html

I would greatly appreciate any assistance.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 08 '15 at 06:35 PM in Blueprint Scripting

avatar image

omega286
1 2 4

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

2 answers: sort voted first

So after stumbling upon this thread I was able to get everything working.

https://answers.unrealengine.com/questions/37396/mouse-wheel-as-input-axis.html

more ▼

answered Sep 09 '15 at 05:58 PM

avatar image

omega286
1 2 4

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

First of all both mouseWheelup/down should be scaled to +1 in most instances.

Secondly, can you show us the blueprint youve created thats not working?

Youll probably want something like MouseWheelUp -> IncrementInt(setSpeed)

Make setSpeed an integer value and then in eventTick take setSpeed 10 and then use it to move the vehicle using something like addLocalOffset with the return of setSpeed*10 into the float input of a getForwardVector float

Simple and effective, should get you started. Be careful with axis scale if they are set to -1 you sometimes need to negate it so you get positive, or change the scale to positive.

Hope this helps Don't forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.

more ▼

answered Sep 08 '15 at 06:50 PM

avatar image

Nsomnia
1.8k 67 27 137

avatar image omega286 Sep 08 '15 at 08:07 PM

Thank you for your reply. I am still really new, and wasn't able to do quite what you suggested, but I was able to do something else:

alt text

alt text

It still doesn't work, I get no movement whatsoever. Am I at least heading in the right direction? Basically I increment during acceleration until it gets to 10, and decrement during deceleration until it reaches 0. Thanks again.

(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