OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> For all you people who dislike the X11 ROM Mouse setup...
Foxdie
post Dec 15 2003, 03:45 AM
Post #1





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



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:)
Go to the top of the page
 
+Quote Post
sashz
post Dec 15 2003, 05:46 AM
Post #2





Group: Members
Posts: 388
Joined: 7-December 03
Member No.: 1,058



What you think if buttons will work :

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

???
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 15 2003, 05:54 AM
Post #3





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



Getting warm smile.gif

I'll post soon, just finishing it up
Go to the top of the page
 
+Quote Post
jerrybme
post Dec 15 2003, 07:28 AM
Post #4





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



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. biggrin.gif

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.
Go to the top of the page
 
+Quote Post
yzord
post Dec 15 2003, 08:36 AM
Post #5





Group: Members
Posts: 162
Joined: 11-December 03
Member No.: 1,152



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... smile.gif )
Yz
Go to the top of the page
 
+Quote Post
enki
post Dec 15 2003, 09:11 AM
Post #6





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



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*
Go to the top of the page
 
+Quote Post
offroadgeek
post Dec 15 2003, 10:44 AM
Post #7





Group: Admin
Posts: 1,418
Joined: 18-May 03
From: St. Paul, MN
Member No.: 4



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)
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 15 2003, 11:59 AM
Post #8





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



Damn the cats out of the bag, good idea though.


Image black and white due to camera taking a very "yellowy" picture. Feel free to use this image where you like.


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?
Go to the top of the page
 
+Quote Post
jerrybme
post Dec 15 2003, 12:38 PM
Post #9





Group: Members
Posts: 639
Joined: 4-September 03
From: Chicago
Member No.: 401



Foxdie I'm impressed by your plan! (you've got way too much time on your hands laugh.gif ) 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.
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 15 2003, 12:50 PM
Post #10





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



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..
Go to the top of the page
 
+Quote Post
ScottYelich
post Dec 15 2003, 01:02 PM
Post #11





Group: Members
Posts: 992
Joined: 9-October 03
From: NYC
Member No.: 609



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.
Go to the top of the page
 
+Quote Post
VeeDubb
post Dec 15 2003, 05:19 PM
Post #12





Group: Members
Posts: 191
Joined: 30-October 03
Member No.: 698



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.
Go to the top of the page
 
+Quote Post
post Dec 20 2003, 01:30 AM
Post #13





Group:
Posts: 0
Joined: --
Member No.: 0



[ 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
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 ...
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 20 2003, 05:41 AM
Post #14





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



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.
Go to the top of the page
 
+Quote Post
offroadgeek
post Dec 20 2003, 09:44 AM
Post #15





Group: Admin
Posts: 1,418
Joined: 18-May 03
From: St. Paul, MN
Member No.: 4



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! wink.gif

cheerio
(british accent simulated)
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2014 - 04:02 PM