Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Right mouse button on Mac  (Read 2721 times)
0 Members and 1 Guest are viewing this topic.
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Posted 2011-04-24 17:31:56 »

Right now I'm deciding which key the player should hold to move the camera . I was thinking about CTRL, but I've read the Ctrl + click means right click in Mac computers . I don't want the camera to move like crazy when a mac user uses the right click .

So I've found some information, but some say it's Ctrl+click, others Shift+click and Mac+click . Which one is interpreted by java as a right click ?

Thanks .

Offline lhkbob

JGO Knight


Medals: 32



« Reply #1 - Posted 2011-04-24 23:20:25 »

Mac uses ctrl + click as right click, although the last time I was doing mouse stuff on a Mac in Java, I remember that Java didn't translate ctrl + left click as a right click but instead sent it as a left click event and a ctrl key event.

If what I remember is correct (and hasn't changed), then you can still do ctrl to move the camera.  But then you get into the issue of what happens if they want to do the right click for some other action and think that ctrl click will work? Or think that by ctrl-clicking, you're really having them right click? 

The new track pads support two fingers on the pad when clicking to generate a right click as well, and the actual mice have two button support.  I'm not sure if any of this helps but its some extra information to think about.

Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2011-04-25 00:25:50 »

This is another reason why I hate Macs Angry

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mr. Gol

Senior Devvie


Medals: 1



« Reply #3 - Posted 2011-04-25 10:47:55 »

You could just use control-click on Windows and Linux and alt-click on Mac...
Offline lhkbob

JGO Knight


Medals: 32



« Reply #4 - Posted 2011-04-25 13:36:31 »

Or use Command-clock for Mac since the command key is the usual replacement for control in most shortcuts (cmd + c instead of ctrl + c, etc).

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #5 - Posted 2011-04-25 14:17:05 »

Actually I don't need a "Ctrl+Click" . The way it works now, when the player holds Control, it will enter the "camera moving" mode . When the player releases it, it leaves the camera mode .
On the other hand I need the right click to use items (while the left one is for actions in general) . I'm worried about the situation when the player needs to use an item , then he holds ctrl (to perform the "right click") and the camera start moving .

Well anyway thanks for your information . But I think I'll just leave it the way it is now, and probably in a week or so I'll put up a test version here in JGO, and let's see what the mac users (?) say .

Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #6 - Posted 2011-04-25 14:26:18 »

Anyone know why Mac's havent fully adopted "Right clicking"?

I feel its such a missing fundamental. I know you can plug in a 2 button mouse and it works fine. But why does stock mac's not have it?
(Only reason I can find is that it's Mac's desire to be "simple" and "user friendly")


"Experience is what you get when you did not get what you wanted"
Offline lhkbob

JGO Knight


Medals: 32



« Reply #7 - Posted 2011-04-25 15:09:03 »

I think the original reason was to be simple and to be different.  But now all the mice you get from Apple are two button. It's only the laptops that don't have two buttons, but they have such nice multi-touch trackpad support that I really don't miss it.

Offline Z-Man
« Reply #8 - Posted 2011-04-25 21:27:40 »

Anyone know why Mac's haven't fully adopted "Right clicking"?

I feel its such a missing fundamental. I know you can plug in a 2 button mouse and it works fine. But why does stock mac's not have it?
(Only reason I can find is that it's Mac's desire to be "simple" and "user friendly")
I am currently using a MacBook from 2007 and like others have said you can just use the two fingers on the mouse pad click to right click things. This is a fully supported OS feature and works everywhere. So stock Macs do in fact have right clicking built in, there simply isn't two different buttons for it. It takes some getting use to if your switching to the multi-touch method but after a while it's just natural... Or you can do what I do and have a bluetooth mouse  Cool
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (27 views)
2014-11-22 12:13:56

xFryIx (69 views)
2014-11-13 12:34:49

digdugdiggy (48 views)
2014-11-12 21:11:50

digdugdiggy (42 views)
2014-11-12 21:10:15

digdugdiggy (36 views)
2014-11-12 21:09:33

kovacsa (60 views)
2014-11-07 19:57:14

TehJavaDev (64 views)
2014-11-03 22:04:50

BurntPizza (62 views)
2014-11-03 18:54:52

moogie (77 views)
2014-11-03 06:22:04

CopyableCougar4 (77 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!