Re: touchpad on OM

2009-07-24 Thread Helge Hafting
Michal Brzozowski wrote:
> Hi,
> 
> I'm not sure if anyone has ever tried this. I thought it would be handy 
> to have a mouse pointer on the phone, driven by a "touchpad" area in the 
> lower part of the screen. To click you just hit an appropriate button. 
> This way you can do left click, right click, and any other mouse buttons 
> you want. It should be useful for apps unsuited for finger use.
> 
> Here's a graphical explanation:
> http://pvtrace.com/moko-touchpad.png
> 

Why have that touchpad area???
I understand why you have the L and R buttons. It allows right
and left clicks, which is nice. But why waste area on a "touchpad" ?

Just enable the X mouse pointer - which is easy enough. The
touchscreen _is_ a touchpad already, so no need for a separate pad.
Then you can put the L and R buttons at the bottom of the screen,
and have much more room for the app itself on the screen.

Or am I missing something?

Helge Hafting

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-22 Thread Michal Brzozowski
2009/7/21 Petr Vanek 

> >This is not the problem. If you want to simulate a drag, you need to
> >have the pointer where the drag takes place. But at the same time
> >you're touching the touchscreen and thus moving the pointer under your
> >finger. With clicking this is not a problem, because the pointer is
> >moved to the place where you wanted to click just for a moment.
>
> no worries, if i really need to drag something, i connect vnc
>

I could implement dragging this way: first move the pointer to the position
where you want to begin drag. Press a "begin drag" button, and it leaves
some kind of marker there. Then move the pointer to where you want to finish
drag, press a button again, and a drag event is generated for these
positions. I'm just brainstorming, if you really need such awkward feature
let me know.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-22 Thread roby
i find this a very good idea, without the right click there are tons of
applications which just cannot be used!

On Mon, Jul 20, 2009 at 10:30 AM, Michal Brzozowski wrote:

> Hi,
>
> I'm not sure if anyone has ever tried this. I thought it would be handy to
> have a mouse pointer on the phone, driven by a "touchpad" area in the lower
> part of the screen. To click you just hit an appropriate button. This way
> you can do left click, right click, and any other mouse buttons you want. It
> should be useful for apps unsuited for finger use.
>
> Here's a graphical explanation:
> http://pvtrace.com/moko-touchpad.png
>



-- 
roby
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Michal Brzozowski
2009/7/22 Vikas Saurabh 

> > Oh, I forgot. To bring up the touchpad, slide your finger up from the
> bottom
> > left corner. Sliding from bottom right corner brings up the keyboard. To
> > hide the touchpad, slide down on the buttons.
>
> The app really works nicely but if the app is running one cannot slide
> the bottom bar of launcher[1]. I can understand that you would need to
> capture input from a certain section...but the whole of bottom bar
> goes for a toss while literki is running.
> Can this be fixed...as I would like to use both literki and
> launcher...yeah i am a little greedy :)
>

You can change the size of sliding area in the config file. If you change to
say 80x80, it will only take the left and right bottom corners, while the
middle part is free for Launcher.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Vikas Saurabh
> Oh, I forgot. To bring up the touchpad, slide your finger up from the bottom
> left corner. Sliding from bottom right corner brings up the keyboard. To
> hide the touchpad, slide down on the buttons.

The app really works nicely but if the app is running one cannot slide
the bottom bar of launcher[1]. I can understand that you would need to
capture input from a certain section...but the whole of bottom bar
goes for a toss while literki is running.
Can this be fixed...as I would like to use both literki and
launcher...yeah i am a little greedy :)

--Vikas

1 - http://wiki.openmoko.org/wiki/Launcher

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Petr Vanek
>This is not the problem. If you want to simulate a drag, you need to
>have the pointer where the drag takes place. But at the same time
>you're touching the touchscreen and thus moving the pointer under your
>finger. With clicking this is not a problem, because the pointer is
>moved to the place where you wanted to click just for a moment.

no worries, if i really need to drag something, i connect vnc

P.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Michal Brzozowski
2009/7/21 Petr Vanek 

> >Middle button sure. Drag mode is I think impossible, as you would need
> >the pointer at two places at once.
>
> if ever, how about locking the click via checkbox and releasing? (or a
> looong hold would lock, next unlock?) just thinking, i am not certain
> this would be useful anywhere anyways...
>

This is not the problem. If you want to simulate a drag, you need to have
the pointer where the drag takes place. But at the same time you're touching
the touchscreen and thus moving the pointer under your finger. With clicking
this is not a problem, because the pointer is moved to the place where you
wanted to click just for a moment.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Petr Vanek
>Middle button sure. Drag mode is I think impossible, as you would need
>the pointer at two places at once.

if ever, how about locking the click via checkbox and releasing? (or a
looong hold would lock, next unlock?) just thinking, i am not certain
this would be useful anywhere anyways...

>I thought the winner would be a mouse wheel simulator to scroll in the
>various apps that have tiny scrollbars. But it seems from using vnc
>that this kind of scrolling doesn't work in any app. Does anyone know
>why?
>

>Sorry, the Xshape extension is really slow. Changing the transparency
>mask just takes that much time (maybe I'm doing something wrong, but
>I've been trying to make it faster for a long time).

eh, pity, thanx for all the work anyways!
Petr



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Michal Brzozowski
2009/7/21 Petr Vanek 

> MB> Thanks, actually it was doing middle click instead of right. If you
> MB> reinstall from the same url, it should work. What application can
> MB> you test right click in on OM? I've only tested on my desktop.
>
> Michal, i have been using the new mouse enabled literki and it's great!
> Not needed, just thinking: drag mode and middle button click might be
> useful in future.


Middle button sure. Drag mode is I think impossible, as you would need the
pointer at two places at once.

I thought the winner would be a mouse wheel simulator to scroll in the
various apps that have tiny scrollbars. But it seems from using vnc that
this kind of scrolling doesn't work in any app. Does anyone know why?


>
>
> One feature request though - while using the Fn buton, the keyboard
> redraws. The speed of the redraw is quite ok, but could it be a bit
> faster ;) ?
>
> Petr


Sorry, the Xshape extension is really slow. Changing the transparency mask
just takes that much time (maybe I'm doing something wrong, but I've been
trying to make it faster for a long time).
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-21 Thread Petr Vanek
MB> Thanks, actually it was doing middle click instead of right. If you
MB> reinstall from the same url, it should work. What application can
MB> you test right click in on OM? I've only tested on my desktop.

Michal, i have been using the new mouse enabled literki and it's great!
Not needed, just thinking: drag mode and middle button click might be
useful in future.

One feature request though - while using the Fn buton, the keyboard
redraws. The speed of the redraw is quite ok, but could it be a bit
faster ;) ?

Petr





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-20 Thread Petr Vanek
MB> Thanks, actually it was doing middle click instead of right. If you
MB> reinstall from the same url, it should work. What application can
MB> you test right click in on OM? I've only tested on my desktop.


testing on claws-mail (gtk).

tried the new version - works like a charm :), actually, you can see a
pop-up menu even upon right click on icons in illume

great work, thank you!

Petr


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-20 Thread Michal Brzozowski
2009/7/20 Petr Vanek 

>
> Michal,
>
> it seems to only make left click and not right for me...
>
> anything i can debug?
>
> Petr
>
>
Thanks, actually it was doing middle click instead of right. If you
reinstall from the same url, it should work. What application can you test
right click in on OM? I've only tested on my desktop.

Michal
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-20 Thread Petr Vanek
>I've implemented this as part of literki. The touchpad area is of
>course transparent, and the pointer is just a little x-shaped window.
>The pointer is a bit shaky, because of noise coming from the finger
>input. It's also a bit slow on some windows, vala-terminal in
>particular. I'm not sure if it's possible at all to use a real mouse
>pointer for this.

Michal,

it seems to only make left click and not right for me...

anything i can debug?

Petr


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Xavier Cremaschi
Timo Juhani Lindfors a écrit :
> Xavier Cremaschi  writes:
>> I don't know for the X in Freerunner but
>> http://wearables.unisa.edu.au/mpx/?q=mpx
> 
> Any idea what the status is? I don't seem mpx in debian unstable and
> that page seems to be from 2006.

Wikipedia :
- MPX was merged into the current development version of X.Org on 26 May 
2008
- Xinput2 (XI2) which is the second official stable API release of the 
XInput X Window Extension, containing MPX was merged into the current 
development version of X.Org on 3 Jun 2009


You'll need to wait for server 1.7 (X11R7.5, cf. 
http://www.x.org/wiki/Releases/7.5 ), but it's coming...

Xavier.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Timo Juhani Lindfors
Xavier Cremaschi  writes:
> I don't know for the X in Freerunner but
> http://wearables.unisa.edu.au/mpx/?q=mpx

Any idea what the status is? I don't seem mpx in debian unstable and
that page seems to be from 2006.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Xavier Cremaschi
I don't think X supports two pointers to have at
> two different places. That's why I have to draw a fake pointer.

I don't know for the X in Freerunner but 
http://wearables.unisa.edu.au/mpx/?q=mpx

Xavier.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Timo Juhani Lindfors
[removed cross-post for both community and devel]

Michal Brzozowski  writes:
> Yes, I use the XTest extension to do the clicks. The problem is that when

Ah. What if you EVIOGRAB the touchscreen device while the touchscreen
is pressed on top of your app to prevent X from seeing touchscreen
events during that time?


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Michal Brzozowski
2009/7/20 Timo Juhani Lindfors 

> Michal Brzozowski  writes:
> > bit slow on some windows, vala-terminal in particular. I'm not sure if
> it's
> > possible at all to use a real mouse pointer for this.
>
> It is possible. For example
>
> $ xte "mousemove 10 10"
>
> moves mouse pointer to 10+10 and
>
> $ xte "mouseclick 1"
>

Yes, I use the XTest extension to do the clicks. The problem is that when
you're touching the touchpad, that's where the pointer will normally be
moved, and I don't think X supports two pointers to have at two different
places. That's why I have to draw a fake pointer.

When you click the "L" or "R" buttons, the pointer is now free and I can
move it to the location of the fake pointer to simulate the click.



>
> > If you want to experiment, install this package
> > http://pvtrace.com/literki_0.0.2-r4_armv4t.ipk
>
> Pointer to source code would be nice.
>
>
http://pvtrace.com/literki-0.0.2.tar.gz
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


moving mouse cursor automatically with xautomation (Re: touchpad on OM)

2009-07-20 Thread Timo Juhani Lindfors
Michal Brzozowski  writes:
> bit slow on some windows, vala-terminal in particular. I'm not sure if it's
> possible at all to use a real mouse pointer for this.

It is possible. For example

$ xte "mousemove 10 10"

moves mouse pointer to 10+10 and

$ xte "mouseclick 1"

clicks using left mouse button. You can find xte in xautomation
package of debian or upstream at
http://hoopajoo.net/projects/xautomation.html


> If you want to experiment, install this package
> http://pvtrace.com/literki_0.0.2-r4_armv4t.ipk

Pointer to source code would be nice.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: touchpad on OM

2009-07-20 Thread Michal Brzozowski
2009/7/20 Michal Brzozowski 

> I've implemented this as part of literki. The touchpad area is of course
> transparent, and the pointer is just a little x-shaped window. The pointer
> is a bit shaky, because of noise coming from the finger input. It's also a
> bit slow on some windows, vala-terminal in particular. I'm not sure if it's
> possible at all to use a real mouse pointer for this.
>
>
Oh, I forgot. To bring up the touchpad, slide your finger up from the bottom
left corner. Sliding from bottom right corner brings up the keyboard. To
hide the touchpad, slide down on the buttons.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community