Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ctrl + Click = RMB - How?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Sat Oct 15, 2005 11:46 am    Post subject: Ctrl + Click = RMB - How? Reply with quote

Hoi,

I've got a iMac DV SE (G3) here, running KDE 4.
I want to have the OS 9/X Style Mouse behaviour where holding Ctrl while clicking with the
one button mouse results in a right click.

How do I enable this?
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Sat Oct 15, 2005 4:06 pm    Post subject: Reply with quote

Hoi,

have somebody who knows how to read look into the PPC-FAQ, especially the passage where it says "There is no way to use ctrl-button like on Mac OS X..."
Back to top
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Sat Oct 15, 2005 4:40 pm    Post subject: Reply with quote

Thanks. I haven't read the FAQ.
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Sat Oct 15, 2005 10:36 pm    Post subject: Reply with quote

pindar wrote:
Hoi,

have somebody who knows how to read look into the PPC-FAQ, especially the passage where it says "There is no way to use ctrl-button like on Mac OS X..."


That was a very UGLY response!
Back to top
View user's profile Send private message
tacker
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 85
Location: Offenbach, Germany

PostPosted: Sun Oct 16, 2005 8:09 am    Post subject: Reply with quote

heavyt wrote:
That was a very UGLY response!

Never mind. At least it helped.
Back to top
View user's profile Send private message
fuoco
Guru
Guru


Joined: 23 May 2004
Posts: 386
Location: Israel

PostPosted: Sun Oct 16, 2005 2:50 pm    Post subject: Reply with quote

OK. Now that we know it's not possible to get that functionality in X, can someone point to why is that so and is there anything that can be done to make it work one day ?
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Sun Oct 16, 2005 5:54 pm    Post subject: Reply with quote

Or possibly an alternative or another solution!
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Thu Oct 20, 2005 3:43 pm    Post subject: Reply with quote

I don't know where it is, but I'm pretty sure, it's in some documentation you should have read while (or better before) installing gentoo on your mac...

on my iBook I got my 'RMB' on the key next to left(home), enabled by adding
Code:
dev.mac_hid.mouse_button_emulation = 1
dev.mac_hid.mouse_button2_keycode = 127
dev.mac_hid.mouse_button3_keycode = 96

to my /etc/sysctl.conf

I think it's kernel stuff, just let me check menuconfig...

EDIT:
Code:

Device Drivers  --->
Macintosh device drivers  --->
[*] Support for ADB input devices (keyboard, mice, ...)
[*]   Support for mouse button 2+3 emulation

and from the help:
Code:

CONFIG_MAC_EMUMOUSEBTN:                                                 │ 
  │                                                                         │ 
  │ This provides generic support for emulating the 2nd and 3rd mouse       │ 
  │ button with keypresses.  If you say Y here, the emulation is still      │ 
  │ disabled by default.  The emulation is controlled by these sysctl       │ 
  │ entries:                                                                │ 
  │ /proc/sys/dev/mac_hid/mouse_button_emulation                            │ 
  │ /proc/sys/dev/mac_hid/mouse_button2_keycode                             │ 
  │ /proc/sys/dev/mac_hid/mouse_button3_keycode                             │ 
  │                                                                         │ 
  │ If you have an Apple machine with a 1-button mouse, say Y here.

:wink:

there is a tool for getting the keycodes but I can't remember its name ^^""

PS: hey cool... I really forgot I got a '3rd mouse button' on Fn+strange key next to left ^^


Last edited by Cenrim on Thu Oct 20, 2005 3:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Oct 20, 2005 3:52 pm    Post subject: Reply with quote

The document you probably got it from was the PPC FAQ ;)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fuoco
Guru
Guru


Joined: 23 May 2004
Posts: 386
Location: Israel

PostPosted: Thu Oct 20, 2005 4:29 pm    Post subject: Reply with quote

JoseJX wrote:
The document you probably got it from was the PPC FAQ ;)


lol !

Wouldn't it be theoretically possible to hack on the 2+3 buttons emulation to work also with Ctrl+Mouse_Button_Click, or something like that ?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Oct 20, 2005 4:57 pm    Post subject: Reply with quote

They're seperate input devices essentally, it's not as easy as it sounds. You could look into mouseemu though, it may be possible to set something up with that instead.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nix_newb
n00b
n00b


Joined: 01 Apr 2004
Posts: 72

PostPosted: Wed Oct 26, 2005 4:45 am    Post subject: Reply with quote

It's only sort of impossible...

Using the xtest extension, you can write a program that can fake click with the XTestFakeButtonEvent(Display *dpy, int buttonNb, Bool PressedOrReleased, int time) function. Then, if your window manager let's you bind ctrl+click to an action, you can bind it to running your custom program that does the fake right click...

It's vaguely mentioned on the FVWM forum http://fvwm.lair.be/viewtopic.php?t=556 (scroll down to zonk's post)

Though I never did get around to trying it on my iBook, I used the above-described sysctl method for right-click.
Back to top
View user's profile Send private message
fr3sh
n00b
n00b


Joined: 25 Jul 2005
Posts: 55

PostPosted: Sun Oct 30, 2005 12:59 pm    Post subject: Reply with quote

seems like this could work for me...

at the moment i try to do a little workaround with the little c program and xtest.

if i find something new... i post it in thes forum



fr3sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum