Jump to content
Sign in to follow this  
Emrage

Right clicking with java 9

Recommended Posts

If you have java 9, right clicking will not work so basically the game is unplayable. To fix this go to wherever you handle mouse keys, usually this is in RSApplet. Then look for this method and change it to what I have.(The part with the type == ....)

 

https://hastebin.com/uvipojasup.scala

  • Haha 1

Share this post


Link to post
Share on other sites

I have moved this to guides for people with the same issue looking for a solution.

Thanks.

Share this post


Link to post
Share on other sites
On 4/20/2018 at 1:30 PM, Kliksa said:

I have moved this to guides for people with the same issue looking for a solution.

Thanks.

This isn't something players are able to do, it's for the developers.

Share this post


Link to post
Share on other sites
On 4/20/2018 at 12:57 PM, Sophie69 said:

:P Use the latest stable release 

Version 8 Update 171 Release date April 17, 2018 

Where can I download it?

Share this post


Link to post
Share on other sites
23 hours ago, Lauren said:

Oh he was talking about java lol, I thought that he was talking about the client version of this game itself. I don't want to downgrade to java 8 since I use some features of java 9 to develop my own applications.

Share this post


Link to post
Share on other sites
On 20/04/2018 at 10:41 AM, Emrage said:

If you have java 9, right clicking will not work so basically the game is unplayable. To fix this go to wherever you handle mouse keys, usually this is in RSApplet. Then look for this method and change it to what I have.(The part with the type == ....)

 

https://hastebin.com/uvipojasup.scala

That code looks awful all you have to do is replace

if (type == 2) {

with

if (SwingUtilities.isMiddleMouseButton(e)) {
if (mouseevent.isMetaDown()) {

with

if (SwingUtilities.isRightMouseButton(e)) {

and finally replace

} else {

with

} else if (SwingUtilities.isLeftMouseButton(e)) {
Edited by 911711
source: https://www.rune-server.ee/runescape-development/rs2-client/snippets/668248-fix-mouse-clicking-java-9-a.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×