9th Jul, 2013, 07:32 AM
(9th Jul, 2013 07:29 AM)Markamc Wrote: [ -> ]yup, fixed it and added your changes...i am trying to changeover to linux but,atm I need CADCAM etc for my work...Maybe multi boot?
(9th Jul, 2013 07:29 AM)Markamc Wrote: [ -> ]yup, fixed it and added your changes...i am trying to changeover to linux but,atm I need CADCAM etc for my work...Maybe multi boot?
(9th Jul, 2013 07:35 AM)Markamc Wrote: [ -> ]You're not wrong! , atm I have virtualbox running too ubuntu. Plays havoc with device managmentTry multi boot, i got it too =).
https://github.com/brantje/xbian-touch/raw/master/ts_calib.sh
https://github.com/brantje/xbian-touch/raw/master/tslib_1-1_armhf.deb
https://github.com/brantje/xbian-touch/raw/master/uimapper.tar.gz
https://github.com/brantje/xbian-touch/raw/master/uimapper.conf
(9th Jul, 2013 08:01 AM)Markamc Wrote: [ -> ]I'm very happy with that, it's great to get some help, many thanks...I'll change my links on the blogFor ubuntu your can download wubi (Windows UBuntu Installer).
Although it's great to witness...not having had the experience myself, I am, atm, clueless to how that happened!!! especially so quickly. The process of learning the only thing that's keeps me going!
Anyhow thanks!
sligtly off-topic again, is multi-boot an alternative to virtualbox or do you mean multiple-boot at start-up? any link please?
(9th Jul, 2013 08:44 AM)brantje Wrote: [ -> ](9th Jul, 2013 08:01 AM)Markamc Wrote: [ -> ]I'm very happy with that, it's great to get some help, many thanks...I'll change my links on the blogFor ubuntu your can download wubi (Windows UBuntu Installer).
Although it's great to witness...not having had the experience myself, I am, atm, clueless to how that happened!!! especially so quickly. The process of learning the only thing that's keeps me going!
Anyhow thanks!
sligtly off-topic again, is multi-boot an alternative to virtualbox or do you mean multiple-boot at start-up? any link please?
That should give you an option on boot what to start (ubuntu or windows).
Github is not so hard when you learn the basics.
if inrange <= 400:
if holdtime > 0.20 and holdtime <= 0.50:
rev.code = BTN_TOUCH
rev.value = 1
d.fire_event(rev)
rev.value = 0
d.fire_event(rev)
holdtime = 0
if holdtime > 0.50 and holdtime <= 1.50:
rev.code = BTN_RIGHT
rev.value = 1
d.fire_event(rev)
rev.value = 0
d.fire_event(rev)
holdtime = 0
if holdtime > 1.5:
holdtime = 0
(9th Jul, 2013 10:06 AM)Markamc Wrote: [ -> ]the only problem with this is you are now in control and I can no longer make code changes easily......Done!
there is no need to inject a BTN_TOUCH event
so you should change it to this..
Code:
if inrange <= 400:
if holdtime > 0.20 and holdtime <= 0.50:
rev.code = BTN_TOUCH
rev.value = 1
d.fire_event(rev)
rev.value = 0
d.fire_event(rev)
holdtime = 0
if holdtime > 0.50 and holdtime <= 1.50:
rev.code = BTN_RIGHT
rev.value = 1
d.fire_event(rev)
rev.value = 0
d.fire_event(rev)
holdtime = 0
if holdtime > 1.5:
holdtime = 0
(9th Jul, 2013 05:45 PM)brantje Wrote: [ -> ]So we have 2 methods for now:
1: Marcamc
+ Outside XBMC, no xbmc patches required will work on later versions.
+ Right click works
- Sometimes a small offset
- Can be laggy (didn't had that yet)
2: bboyandru
+ Inside XBMC, so in future you can launch 'things' with an gesture
+ Maybe Gotham proof, other one is already Gotham proof.
+ Calibration was perfect
- Need to tab a few times for a click is fired
(9th Jul, 2013 06:36 PM)bboyandru Wrote: [ -> ]Do you have a link to the patch file / diff file?(9th Jul, 2013 05:45 PM)brantje Wrote: [ -> ]So we have 2 methods for now:
1: Marcamc
+ Outside XBMC, no xbmc patches required will work on later versions.
+ Right click works
- Sometimes a small offset
- Can be laggy (didn't had that yet)
2: bboyandru
+ Inside XBMC, so in future you can launch 'things' with an gesture
+ Maybe Gotham proof, other one is already Gotham proof.
+ Calibration was perfect
- Need to tab a few times for a click is fired
In my approach you have to tap just once for a click. The previous patches had a bug. With the new patches everything is working very well which means:
- verry sensitive(due to increased click_confines value) single tap for click
- scrollbars can be dragged
- calibration is ok
Also, these patches will work in the next releases, because the principle is the same for click and calibration.
Also, as future work, touch gestures can be added. ;-)
Regards,
Andrei
(9th Jul, 2013 06:42 PM)brantje Wrote: [ -> ]Do you have a link to the patch file / diff file?
A complete xbmc installation is abit to big to browse through the changes.
The patch repo is here:
https://github.com/xbianonpi/xbian-patches
(9th Jul, 2013 09:31 PM)Markamc Wrote: [ -> ]Hi Andrei,Hi Mark!
Nice one, I'll try it later.
How do you do the calibration, is it using a program?
It would be possible to script and inject gestures too in python at the event level, although I don't intend on doing it! (need life back!)
The reason I tried a different way was the click_confines was to small for my finger size on a 7" screen, can you change this externally, say in the calib file so I could alter the sensitivity of a touch? Saves me recompiling.
Brantje, I'm sure the calibration should'nt be off, I think the clue was the resolution of your pi, xres 1240. The 'lag' I noticed was probably due to the python error