ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > GP2X/GP2XWiz/Caanoo Port > Incorrect stylus handling in the SCI engine
Incorrect stylus handling in the SCI engine
  Author    Thread Reply to topic
surdules



Joined: 10 Nov 2010
Posts: 16
Incorrect stylus handling in the SCI engine 

I think there is a bug with the way the stylus is handled on the Caanoo, in SCI games. Specifically:

1. Launch some SCI game, say Space Quest 1 VGA
2. Move the mouse somewhere on the screen with the joystick
3. Click with the stylus somewhere else on the screen

You'll notice that the engine registers the click where the mouse was left via the joystick, even if the stylus click was in a totally different spot on the screen.

I think the bug is related to the code at line 147 in sci/event.cpp where all mouse-move events are ignored, and only mouse down/up events are handled. On a PC (or some other device with "continuous" mouse movement) this is not a problem, since the click will always register where the mouse cursor last was; but on devices with styluses/touch interfaces, it's possible to move the mouse somewhere and click entirely somewhere else.

This problem seems to be specific to the SCI engine -- the Scumm engine works fine (and the code seems to be fine as well, since it handles both movement and click-type events).

I'm not terribly familiar with the ScummVM source -- can someone more familiar confirm if this is indeed the case?

Also, are there instructions anywhere for how to build this code for the Caanoo? I'd like to play with the code a little and test this theory, but not sure how to get started.

Thanks,

Razvan.

 Reply with quote  
Post Mon Nov 15, 2010 4:35 am 
 View user's profile Send private message
DJWillis
ScummVM Porter


Joined: 26 Oct 2005
Posts: 173
 

Thanks for the report, looking into it.

 Reply with quote  
Post Mon Nov 22, 2010 2:32 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge