Author Topic: For all you people who dislike the X11 ROM Mouse setup...  (Read 8481 times)

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
For all you people who dislike the X11 ROM Mouse setup...
« on: December 15, 2003, 06:45:55 am »
I have something in store for you all that will most probably please and will probably get Sash\'s attention too so he may include it in the next ROM...

More later today... I have to apply for a job first before I finish it off but it was a result of insomnia (whoever says insomnia is a bad thing obviously isn\'t a perfectionist coder :roll:)
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #1 on: December 15, 2003, 08:46:32 am »
What you think if buttons will work :

left button - tape
right button - hold Fn + tape
middle button - hold Shift + tape

???

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
For all you people who dislike the X11 ROM Mouse setup...
« Reply #2 on: December 15, 2003, 08:54:22 am »
Getting warm

I\'ll post soon, just finishing it up
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #3 on: December 15, 2003, 10:28:29 am »
Not sure what Foxdie is working on but I\'ve remapped the Calendar, Address and Mail keys to toggle the mouse buttons
Calendar=mouse left
Address=mouse middle
Mail=mouse right

I did this with Sash\'s help pointing me to the right file.  

To do this, edit xkmc file in /home/etc

take the lines:
keycode=49,        Control,  Exec, xmodmap -e \"pointer = 1 2 3\", NoFork, NoAutoRepeat
keycode=50,        Control,  Exec, xmodmap -e \"pointer = 2 1 3\", NoFork, NoAutoRepeat
keycode=51,        Control,  Exec, xmodmap -e \"pointer = 3 2 1\", NoFork, NoAutoRepeat

Change the keycode=96 & 97 & 98 respectively on each line.Then replace Control with none on each line save and reboot.

Now I can change the screen taps with one key stroke. It\'s much easier/faster to navigate now.
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

yzord

  • Full Member
  • ***
  • Posts: 162
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #4 on: December 15, 2003, 11:36:31 am »
Would this be impossible?
Left Click - just one tap. One tap moves the mouse to the position and clicks the left mouse at that point.
Right Click - tap-and-hold. One tap moves the mouse to the position, but hold triggers right click.
Middle Click - tap-tap&hold. Or double tap, and hold on the second tap.

What do you think of that? Maybe even make the hold time configurable (some people who are edgy like me might like a very short hold time...  )
Yz

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #5 on: December 15, 2003, 12:11:47 pm »
im curious are the home and menu buttons both like \"special case\" type buttons, cuz i havent seen anyone try to use them... i know obviously home/power on is useful for *gasp* powering on, but couldnt be used outside that context?

also, what about those two japanese character buttons in the lower left hand corner of the actual qwerty... im assuming one of them is to switch between hiragana and katakana, is the other one for kanji then?

anyways, itd be cool if we could get special mappings for all of these... i like having a control button ALOT, and as annoying as fn+1,2,3 to switch mice is... i like control too much..

also, ive noticed my adress button doesnt behave like alt, as it is allegedly supposed to. hmm...cant get the menu in most apps with alt, turns i can alt+tab switch tho, but there are other irregularities ive noticed, neways...

*jumping up and down as zgcc-cross for cacko-x11 dl\'s*
Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
For all you people who dislike the X11 ROM Mouse setup...
« Reply #6 on: December 15, 2003, 01:44:45 pm »
Quote
also, what about those two japanese character buttons in the lower left hand corner of the actual qwerty... im assuming one of them is to switch between hiragana and katakana, is the other one for kanji then?

anyways, itd be cool if we could get special mappings for all of these... i like having a control button ALOT, and as annoying as fn+1,2,3 to switch mice is... i like control too much..

check out this thread for re-mapping the two japanese keys to Cntl and Alt.

I\'m also very interested in all this talk about remapping the Calendar, Address, Mail, Home, and Menu keys.  

I\'m wondering if someone should propose a layout, and post it here for others to provide feedback...  

Maybe that\'s what Foxdie is already doing?   8)
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
For all you people who dislike the X11 ROM Mouse setup...
« Reply #7 on: December 15, 2003, 02:59:39 pm »
Damn the cats out of the bag, good idea though.

[img]http://foxdie.timduru.org/zaurus/cxx0_keyboard.gif\" border=\"0\" class=\"linked-image\" /]
[span style=\'font-size:16pt;line-height:100%\']Image black and white due to camera taking a very \"yellowy\" picture. Feel free to use this image where you like.[/span]


I\'m still working on it but this is what I\'ve got so far. The leftmost japanese key near the \"fn\" sets the screen touch as the Left mouse button, the rightmost one near the \"-\" key sets the screen touch as Right mouse button, holding down \"fn\" and pressing the leftmost key sets the screen touch as Middle mouse button.

The Calender button is still Control, the Address key is still Alt (I agree with these mappings, just like a real keyboard). Ctrl + 1, 2, 3 is now disabled (not needed) and so is switching to the russian keyboard layout. Pressing Control (Calender) and the Menu key now launches a Terminal window.

What I\'m working on right now:
A complete restructure of the keyboard to include basic mouse navigation to a more precise scale. Moving the mouse by touching the screen is a little clumsy, you can\'t precisely aim the cursor.

My first plan is to set up a new modifier key triggered by the Mail key to use the arrow keys to navigate the cursor pixel by pixel, and to also redefine these 2 japanese characters for direct mouse input (pressing the left one will trigger a click wherever the mouse cursor lies, pressing the right one will cycle through the available mouse buttons that the left button will simulate).

My second plan is setting up an auto screen rotation script to trigger when the display is opened in the \"VIEW STYLE\" mode, as well as resizing X11 to fit (if you\'ve ever tried using the XRAND command to resize the display you\'ll notice that it rotates it fine but doesn\'t update the window manager)

My third plan is to possibly disable all mouse clicking via the screen, this would work in conjunction with the plan above in some respects, touching the screen would merely set the mouse cursor\'s position and use the mail / japanese character to simulate mouse clicks in the \"INPUT STYLE\" mode and use the jog wheel up and down arrow to simulate middle / right mouse button clicks and the OK button to simulate left mouse button clicks.


This probably sounds insane but it\'s how I want my Z to be, but I also hope that it pleases other people as well. Any suggestions / feedback?
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #8 on: December 15, 2003, 03:38:45 pm »
Foxdie I\'m impressed by your plan! (you\'ve got way too much time on your hands   ) The best part of having a Z is being able to tweak it until it breaks!
For me though I don\'t mind using the stylus. My ideal layout would be all mouse buttons could be achieved through screen taps alone.

My current layout is:
keys right of Fn mapped to Control & Alt
Calendar toggles mouse L
Address toggles mouse Middle
Mail toggles mouse R

Next step for me is to see about mapping the Calendar, Address & Mail icons on the right side of the screen to mouse button toggles so I can mouse without touching the keyboard.

This could be very useful in the future if the screen rotation feature gets worked out & combined with a screen keyboard like in the Sharp ROM. I\'d like to be able to use the X11 ROM in PDA mode at times.
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
For all you people who dislike the X11 ROM Mouse setup...
« Reply #9 on: December 15, 2003, 03:50:34 pm »
Quote
Foxdie I\'m impressed by your plan! (you\'ve got way too much time on your hands  :lol: ) The best part of having a Z is being able to tweak it until it breaks!

That sure is true, it\'s the most fun electronic device I\'ve ever bought

Quote
Next step for me is to see about mapping the Calendar, Address & Mail icons on the right side of the screen to mouse button toggles so I can mouse without touching the keyboard.

Good luck my friend, those are actually a part of the digitiser, not hardware keys, you\'ll have to make a program to track where the mouse clicks on screen at the time of the stylus press.

I have actually thought about writing a little applet that sits by the exit button on the quick launch bar that indicates which mouse button is currently active, whether shift/caps lock is on or not etc but I don\'t have the resources to write such a program and don\'t know how to start programming Zaurus apps (I\'m a very fast learner and know most of what can and can\'t be done in programming but the Zaurus is such a different platform).

I think I\'ll stick to writing scripts for now..
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
For all you people who dislike the X11 ROM Mouse setup...
« Reply #10 on: December 15, 2003, 04:02:05 pm »
what we need is an app that\'s friendlier than xmodmap with the x display (I forget the name...
xkeycaps?) ... with a full listing of all keys to choose from in one area, and all values to choose
from in another... along with pressing a key and telling the key-code combo.

ie: open app, press config key-press, press fn-z (touch screen with other hand?), then select value \"FN-1\"
etc

it needs to be quick, pretty and complete.

VeeDubb

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
For all you people who dislike the X11 ROM Mouse setup...
« Reply #11 on: December 15, 2003, 08:19:01 pm »
HAs anybody looked around at what\'s out there?  There must be a graphical front end the the xmodmap command somewhere, then it\'s just cross compile and go.

Anonymous

  • Guest
For all you people who dislike the X11 ROM Mouse setup...
« Reply #12 on: December 20, 2003, 04:30:44 am »
[ i know this is a slightly old thread, but i was poking around for key mapping info in preparation for my switch to the x11 rom (yay!) and ]


hmm... i don\'t know about a gui xmodmap frontend but, afaik the best way to know what x11 sees when you provide input is to use xev, which is installed in most xfree installations along w/ xmodmap.

this is sample output from my osx box:

Code: [Select]
KeyPress event, serial 23, synthetic NO, window 0xe00001,

    root 0x3a, subw 0x0, time 2465355167, (495,266), root:(513,284),

    state 0x2, keycode 42 (keysym 0x49, I), same_screen YES,

    XLookupString gives 1 bytes:  "I"



KeyRelease event, serial 23, synthetic NO, window 0xe00001,

    root 0x3a, subw 0x0, time 2465355263, (495,266), root:(513,284),

    state 0x2, keycode 42 (keysym 0x49, I), same_screen YES,

    XLookupString gives 1 bytes:  "I"


not the friendliest beast but it does give you  bunch of info on the event.
has anyone tried it on the z? i\'m curious about getting the outside cancel/ok keys and the scroll doodad working ...

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
For all you people who dislike the X11 ROM Mouse setup...
« Reply #13 on: December 20, 2003, 08:41:00 am »
It works fine, I\'m working on a decent config file slowly. I\'ve already got it set up so that holding down the mail key and using the arrow keys will move the mouse cursor finely.

If you launch a terminal window and type in xev you\'ll get a program that reports that kind of data.
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
For all you people who dislike the X11 ROM Mouse setup...
« Reply #14 on: December 20, 2003, 12:44:24 pm »
Quote
It works fine, I\'m working on a decent config file slowly. I\'ve already got it set up so that holding down the mail key and using the arrow keys will move the mouse cursor finely.

If you launch a terminal window and type in xev you\'ll get a program that reports that kind of data.

chop chop, we\'re not getting any younger!  

cheerio
(british accent simulated)
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |