Thread: Disable mouse wheel scrolling

Results 1 to 3 of 3
  1. #1 Disable mouse wheel scrolling 
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    How do I disable mouse wheel scrolling whilst an interface is open? I tried to do this on my own but couldn't get it working because it can't find "player" since it's in the server file

    Code:
    player.getInterfaceManager().sendInterface(i);
    Here is the whole code unedited:

    Code:
    	if (!mousewheelevent.isControlDown() && !mousewheelevent.isShiftDown() && Configuration.ZoomSetting) {
    	    if (mousewheelevent.getWheelRotation() == +1) {// Out
    		if (client.zoom >= 80) { //80 Recommended Value
    		    client.zoom -= 16; //This is how much it decrements.
    		    Class305.method3752(184, client.zoom, 644551429);
    		} else {
    		    Class255.consolePrint("You can not zoom any farther outwards!", 93254474);
    		    return;
    		}
    	    }
    	    if (mousewheelevent.getWheelRotation() == -1) {// In
    		if (client.zoom < 608) { //608 Recommended Value
    		    client.zoom += 16; //This is how much it increments.
    		    Class305.method3752(184, client.zoom, 644551429);
    		} else {
    		    Class255.consolePrint("You can not zoom any farther inwards!", 93254474);
    		    return;
    		}
    	    }
    	}
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    The so-called "Player" field is the equivalent of client class in client, you can also see client.zoom^ field right up there. It's difficult to give a real fix for this since so little of refactored in it. Your best shot would probably be to follow the packets which send interfaces and figure out the field through that.
    I'd personally just keep it at ctrl+scroll. Simple scrolling can really become annoying.
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Quote Originally Posted by Kris View Post
    The so-called "Player" field is the equivalent of client class in client, you can also see client.zoom^ field right up there. It's difficult to give a real fix for this since so little of refactored in it. Your best shot would probably be to follow the packets which send interfaces and figure out the field through that.
    I'd personally just keep it at ctrl+scroll. Simple scrolling can really become annoying.
    Alright, fair enough.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Mouse Wheel to Rotate Camera
    By Picka in forum Help
    Replies: 1
    Last Post: 05-23-2014, 09:36 PM
  2. [RS317 Lite(can be adapted easily)] [Ren] Mouse-Wheel scrolling
    By Thee Interface Guy in forum Snippets
    Replies: 4
    Last Post: 07-13-2012, 04:36 AM
  3. [PI]Mouse Wheel Scrolling in Bank + Chat??
    By addicted in forum Help
    Replies: 4
    Last Post: 03-14-2011, 09:06 AM
  4. [non]Working Mouse wheel!
    By SWAT in forum Tutorials
    Replies: 58
    Last Post: 10-11-2010, 05:37 PM
  5. Working Mouse wheel!!
    By SWAT in forum Show-off
    Replies: 27
    Last Post: 05-12-2009, 12:11 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •