Mike_Danton Posted October 18, 2014 Report Share Posted October 18, 2014 Hello,Maybe I just don't understand something, but on the previous version, cmd+click worked fine for moving troops, now on the new version nothing happens. Which avoids me from playing as I just can't get the units moving. Any solutions?Thanks! Quote Link to comment Share on other sites More sharing options...
thamlett Posted October 18, 2014 Report Share Posted October 18, 2014 What type of mouse (or touchpad) are you using?I suggest trying a pc mouse (not that expensive) or a magic mouse. Quote Link to comment Share on other sites More sharing options...
Mike_Danton Posted October 18, 2014 Author Report Share Posted October 18, 2014 Well I'm using the regular touchpad that comes on every portable mac.The weird thing is that it used to work perfectly on the other versions, now nothing seems to work to move the units (except having them build something). But I don't feel like getting a special mouse juste for the game.Thanks for your answer! Quote Link to comment Share on other sites More sharing options...
Morihei Posted October 18, 2014 Report Share Posted October 18, 2014 (edited) I'm having this problem as well. Running the game under OSX 10.9.5 with a normal Apple mouse attached to a MacBook. It worked fine with Alpha 16. The touchpad doesn't manage the right click either. What did you change? Edited October 18, 2014 by Morihei Quote Link to comment Share on other sites More sharing options...
thamlett Posted October 19, 2014 Report Share Posted October 19, 2014 Do you have right click turned on in System Preferences? It's turned off by default. Quote Link to comment Share on other sites More sharing options...
Mike_Danton Posted October 19, 2014 Author Report Share Posted October 19, 2014 (edited) But wouldn't there be a way to simply make it work with cmd+click as on alpha 16, for those who do not have a mouse? As Morihei says, it worked before, has something been changed or forgotten that could easily be put as it first was? Edited October 19, 2014 by Mike_Danton Quote Link to comment Share on other sites More sharing options...
Echelon9 Posted October 19, 2014 Report Share Posted October 19, 2014 There has been a switch to the SDL 2 version middleware, from a SDL1.x before. Could be related here. Quote Link to comment Share on other sites More sharing options...
thamlett Posted October 19, 2014 Report Share Posted October 19, 2014 It works on an iMac I tested it on, but I was using a Magic Mouse. Quote Link to comment Share on other sites More sharing options...
Morihei Posted October 19, 2014 Report Share Posted October 19, 2014 There has been a switch to the SDL 2 version middleware, from a SDL1.x before. Could be related here.That might be right. I see from the SDL wiki that the SDL 2.0.2 release contained "a hint SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK to control whether Ctrl+click should be treated as a right click on Mac OS X. This is off by default." Does that imply that Cmd+click is not treated as a right click by default either? I've failed to find anywhere in System Preferences where I could change anything to regulate this. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted October 19, 2014 Report Share Posted October 19, 2014 Indeed, it seems to be a slightly changed behavior in SDL2. We are not using that hint currently, but it will slightly change hotkey behavior. Ctrl+Click is a hotkey used for unit group selections, we would need to reassign it, possibly to Command+Click? Quote Link to comment Share on other sites More sharing options...
thamlett Posted October 20, 2014 Report Share Posted October 20, 2014 What about two-fingered tap (or click)? Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted October 20, 2014 Report Share Posted October 20, 2014 That would only work for a touchpad, with a mouse it would surely be interpreted as a standard double click? That said, SDL2 does add touch/gesture support, I've been looking into for my iOS branch. Honestly though, if you're playing desktop games, you need a mouse with real buttons. Quote Link to comment Share on other sites More sharing options...
thamlett Posted October 24, 2014 Report Share Posted October 24, 2014 I totally agree (did I hear iOS branch?) Quote Link to comment Share on other sites More sharing options...
Loki1950 Posted October 24, 2014 Report Share Posted October 24, 2014 I totally agree (did I hear iOS branch?)Yeah check out the Android build thread he has it working in the iOS emulator he doesn't have a iOS device for full testing Enjoy the Choice Quote Link to comment Share on other sites More sharing options...
Morihei Posted October 24, 2014 Report Share Posted October 24, 2014 Honestly though, if you're playing desktop games, you need a mouse with real buttons.So, just so I understand: Is this going be to treated as a bug or as a change requiring a hardware update on the part of the user? Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted October 25, 2014 Report Share Posted October 25, 2014 So, just so I understand: Is this going be to treated as a bug or as a change requiring a hardware update on the part of the user?As a workaround, try setting the "SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK" environment variable from the terminal, like this:export SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK=1open path/to/0ad.appchanging the path to wherever 0ad.app is. Kind of yucky for OS X, I know, but it's only a workaround after all My thinking is to add an "emulatemacrightclick" option to the game's config, defaulting to true, Mac users can disable it if they have a two button mouse. Quote Link to comment Share on other sites More sharing options...
Mike_Danton Posted November 28, 2014 Author Report Share Posted November 28, 2014 I solved it guys!! Simply, instead of doing "cmd+click" or "ctrl+click", I used the touching way, i.e two fingers on the pad + click, it works.Sorry for the disturbance (even if it is true that what worked before doesn't work anymore). 1 Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted February 22, 2015 Report Share Posted February 22, 2015 Committed a fix for this in r16380. To enable SDL's right-click emulation on Macs, add this line to your local.cfg file:macmouse = trueThen you will need to reassign other hotkeys that use Ctrl+Click, I would suggest using the Command key (Super):[hotkey.selection]remove = Super[hotkey.session]attackmove = Supergarrison = Superautorallypoint = Superdeselectgroup = SuperBut of course, you can use whatever you prefer. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.