English Amiga Board


Go Back   English Amiga Board > Requests > request.UAE Wishlist

 
 
Thread Tools
Old 30 May 2008, 11:33   #1
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Generic Tablet Support

I would love to use my tablet screen to draw in DPaint, but the only mouse mode that works (not!!) is Mouse *. However, the cursor runs to the corners (i.e. random and unusable). (1.5.0 beta 2)

Perhaps allowing "anything" to move the windows pointer and then just getting its (desktop resolution) position relative to the WinUAE window corner? That would enable any devices that can move the windows pointer to be used in WinUAE - but only in Windowed mode of course.

Usually the drivers that come with mouse, trackball, tablet, digitizer, stephen hawking eyeball laser etc take care of mapping the mouse buttons to it. (At least mine and the tablets at school do.)

I'm using a P-Active 17" LCD Tablet, and it works in everything I throw at it, except DPaint. I would love to get it working and will ofc help out in testing/debugging if you like. You have my email Toni
Photon is offline  
Old 31 May 2008, 12:33   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Hmm.. This could work, in theory at least I'll think about it.
Toni Wilen is offline  
Old 01 June 2008, 00:00   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
This can't work.

I don't see how it is possible to send relative mouse movement messages without having input device that sends relative messages natively.

PC and Amiga mouse speeds can never be perfectly identical and mouse accleration or programs that move mouse cause even more issues. (PC and Amiga side mouse gets "out of sync" slowly)

"Mousehack" injects fake inputevents with absolute coordinates but as you have noticed, it can't work with all programs (and totally incompatible with non-system friendly programs)

Unfortunately (afaik) the only way to keep sync is to detect the Amiga-side cursor but isn't trivial. (easy if it is sprite 0 like system cursor but gets really difficult/impossible if program does not use sprites)
Toni Wilen is offline  
Old 01 June 2008, 20:54   #4
chiark
Needs a life
 
chiark's Avatar
 
Join Date: Jan 2008
Location: England
Posts: 1,707
I agree with Toni - I can't see how this can work.

However, I have a Cunning Plan...

I wrote the driver for the tabby graphics tablet as a commodity back in the early 90s. I could modify that commodity to get the position from an API from Toni, or Toni could create an appropriate event for absolute position change that I could watch.

Toni, any interest in creating this sort of thing or is it a hack too far?
chiark is offline  
Old 02 June 2008, 08:46   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by chiark View Post
I agree with Toni - I can't see how this can work.

However, I have a Cunning Plan...

I wrote the driver for the tabby graphics tablet as a commodity back in the early 90s. I could modify that commodity to get the position from an API from Toni, or Toni could create an appropriate event for absolute position change that I could watch.

Toni, any interest in creating this sort of thing or is it a hack too far?
Whats the difference compared to current "mousehack" mode? (injecting inputevents to input.device)
Toni Wilen is offline  
Old 02 June 2008, 08:58   #6
chiark
Needs a life
 
chiark's Avatar
 
Join Date: Jan 2008
Location: England
Posts: 1,707
Er, I didn't know about mousehack mode. Looking at it, the difference is... nothing. The commodity inserts absolute mouse positioning commands into input.device and that is I guess exactly what mousehack is doing.

Ho hum, I should have known that it wasn't an original idea
chiark is offline  
Old 06 June 2008, 19:50   #7
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
chiark: maybe you were the originator? It's likely the WinUAE mousehack was coded a decade after you, don't be so modest

Toni: Hm, sync, dunno. Necessary? When you're about to flag an Amiga vsync int in WinUAE, before anything, read current Windows pointer coord, and put whatever delta is needed in the mouse regs to snap the Amiga cursor to that pos?

This is assuming you know the current pointer position. Sprite 0 will probably work with the vast majority of apps, and I don't expect to play any game with a tablet (the game code of most games usually make "too good" mice unusable as it is, so attempting to play it with completely different devices would likely be an exercise in futility)

It's just I got inspired by that cartoon Amiga vid with the Portal music on Youtube.... drool

I'm not familiar with the WinUAE code, just an idea, slap me with a wet cat!
Photon is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generic WHDLOAD slave Gaula92 project.WHDLoad 15 08 March 2013 02:07
can't open generic narud17 project.ClassicWB 12 05 June 2009 10:50
The generic slave myth NewDeli project.WHDLoad 5 06 August 2008 18:44
What's an Amiga/Generic virus? Magno Boots support.Games 6 09 May 2006 10:36
USB Drawing tablet support. oldpx request.UAE Wishlist 3 28 July 2004 13:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:03.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07929 seconds with 13 queries