Special case keys
Steve Pampling (1551) 8172 posts |
There are two ways of looking at how to supply a mouse menu key to users of RPCEmu that only have a two button mouse (bit of a rarity these days)
Sadly the second is the one in use.
This has the unfortunate consequence of blocking the use of the four combinations – lone, shift-menu, ctrl-menu, and ctrl-shift-menu which could, using good old keymapper again1, be mapped to all three of the mouse buttons plus a spare combo. 1 With an open source OS you can even modify the appropriate module so the keyboard “shortcut” for the mouse buttons is there on real machines too. |
David Gee (1833) 268 posts |
Remember laptops don’t generally behave as if they have three mouse buttons—certainly not under Windows. They don’t generally have a menu key anyway either. (That said, with Linux on the GNOME desktop, you can get a middle mouse click on the trackpad—either by position or by clicking with three fingers. The former option certainly works well — you may need to use gnome-tweak-tool to change the setting, however.) |
Steve Pampling (1551) 8172 posts |
Dell Latitude E5410: three buttons above the touchpad thingumie (two below) – which I normally ignore and use a Logitech wireless mouse. I forget what the three buttons on the touchpad are supposed to do in Windows – I’m sort of wedded to the mouse…
In which case, generally speaking the code in the RPCEmu build is redundant although if you docked to a workstation with a menu key on the keyboard or you worked on a desktop it becomes relevant. The point was that the code is trampling on the use of all four combinations with no option. Keymapping in RO gives the user more options. I was actually looking to see what I could test on RPCEmu and still use on an ARMBook when I stumbled on the menu key kludge in RPCEmu when I plugged in an old Chicony KU-2971 specifically to test the Menu key.
Blech! There’s a nice utility on the DELL to turn that thing off – much gentler than a 6-inch nail but less fun :) |
Rick Murray (539) 13850 posts |
Yeah… I set my notebook to use the left mouse button as Select, and the right as Menu, and just did without Adjust.
You can do a lot of things on trackpads. I tend to turn all that stuff off where possible because of the number of times my action is misinterpreted with interesting unwanted results… My current Microsoft Wireless keyboard has a touchpad that seems to support an insane number of “gestures”. This instantly stiffs RISC OS, so I use the keyboard with XP and every so often I hear “bong!” which means the touchpad interpreted by movement as a gesture and sent a code to XP that XP didn’t understand.
I suppose it comes down to what you feel ought to be providing support for the Menu key, whether the emulator should fake it, or whether it should be handled within the RISC OS environment. Both are equally correct and equally wrong. ;-) |
Steve Pampling (1551) 8172 posts |
There’s a similar bit of code immediately after the bit I quoted – that bit has additional qualifiers such that End with Ctrl is handled specially and the others are left alone.
Nah, ones my opinion, and I’m from Yorkshire so… |
Rick Murray (539) 13850 posts |
Ah, so a poor copy-paste job then. ;-)
Yeah, that is kind of dumb.
Long hard day at work, it’s nearly midnight, and I still haven’t gotten around to eating (unless you consider a Mars to be dinner) so… no… not falling for the bait. ;-) |
Steve Pampling (1551) 8172 posts |
that bit has additional qualifiers such that End with Ctrl is handled specially and the others are left alone. The whole emulator is quite an achievement so a few little niggles that haven’t, yet, been corrected is not a mega thing. and treats all 4 combinations as one – bad idea. An oversight of an unusual case?
Introduce your French colleagues to the student staple1 of Mars bar sandwiches. 1 That might just have been a 1960s – 1970s thing and current students prepare some kind of Jamie Oliver inspired gourmet dish. |
Clive Semmens (2335) 3276 posts |
Or deep-fried battered Mars bars. Happily we live far enough west of Glasgow to escape this treat. |
Peter Howkins (211) 236 posts |
Steve P, |
Steve Pampling (1551) 8172 posts |
No chance of modifying the special case to only apply to Menu and not sh-menu or ctrl-menu or sh-ctrl-menu then? I’ve had a dig around and found an old DELL D420 with only two buttons. |
Rick Murray (539) 13850 posts |
Pfft. If they were real students they’d spend their dark dismal winter evening hours poring over their homework by candlelight and eating cold beans directly from the can. Kids these days. Don’t know they’re born… |
Chris Hall (132) 3558 posts |
You had a can? |