- Home /
How to get ScrollWheel values using a laptop touchpad?
I am trying to use Input.GetAxis("Mouse ScrollWheel") to get to scroll wheel value. It works well with my mouse but not with my touchpad on my laptop (Synaptics touchpad).
It doesn't return any value in both editor and exports.
Any idea to get the scroll wheel value?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Dakwamine · Nov 30, 2012 at 12:24 PM
Ok I've found a workaround using Event inside OnGUI():
 public void OnGUI()
 {
     if(Event.current.type == EventType.ScrollWheel)
         // do stuff with  Event.current.delta
         Debug.Log(Event.current.delta);
 }
Your answer
 
 
             Follow this Question
Related Questions
How to use Trackpoint middle mouse button for scrolling, 1 Answer
Is it possible to distinguish between mouse and trackpad scroll? 3 Answers
Linux and Mouse Wheel,Linux and Mouse ScrollWheel 0 Answers
How to get GameObject that is clicked by a mouse? 2 Answers
Switch Between Touch And Mouse Controls 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                