AGI Mouse-game behaviour

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
sact
Posts: 30
Joined: Sat Oct 23, 2010 9:11 pm
Location: 2b||!2b
Contact:

AGI Mouse-game behaviour

Post by sact »

I have noticed when mousebuttons are pressed, not only mousebutton variable 27 reacts but also variable 19 which is dedicated for "key pressed on the keyboard". Apparently v19 reacts to scroll wheel as well. While support for scroll wheel is welcome, couldn't all changes in mouse buttons be registered only by v27 instead of v19 reacting as well?

One more thing, if left mouse button value 1 and right mouse value 2 are excluded, AGI Mouse, NAGI and ScummVM have all more or less different reactions and values for mousebutton combinations and different mousebuttons, so if there will be changes, could you please try to unify the values little bit for ScummVM, would be easier for any remaining AGI game developers.

Here's a list of different interpreters and their reactions to mouse:

AGI Mouse 1.1:
Left button 1
Right button 2
Left + right 3
Middle button 4

NAGI 2.09 (with SDL 1.2.14.0, originally supplied with older version 1.2.9.0 which did not support Windows 7 so well. It started to register thumb buttons only after the latest SDL):
Left button 1
Right button 2 for moment but if pressed longer 4
Left + right 5
Middle button 2
(Logitech MX 518):
Thumb button 1 32
Thumb button 2 64

ScummVM 1.2.05:
v27:
Left button 1
Right button 2
Middle button 1 or 2, depending which has been pressed later
v19:
Left button 1
Right button 2
Wheel forward 3
Wheel backward 4

And then while testing, all the sudden, this appeared out from nowhere:

Image
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

The dialog that popped up is ScummVM specefic, and is used for text input for mobile phones
User avatar
sev
ScummVM Lead
Posts: 2308
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

md5 wrote:The dialog that popped up is ScummVM specefic, and is used for text input for mobile phones
I would make a slight correction. This is a predictive input dialog suitable for any device without keyboard. There are plans to make it generic and usable in any engine and our GUI.


Eugene
OmerMor
Got a warning
Posts: 176
Joined: Thu Nov 17, 2005 9:29 pm
Location: Israel
Contact:

Post by OmerMor »

What about original AGI engines that supported the mouse like the Macintosh, the Amiga (and possibly Apple IIgs) ?
What were their specifications?
User avatar
sev
ScummVM Lead
Posts: 2308
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

sact, could you please post a feature request about mouse behavior?


Eugene
sact
Posts: 30
Joined: Sat Oct 23, 2010 9:11 pm
Location: 2b||!2b
Contact:

Post by sact »

sev wrote:sact, could you please post a feature request about mouse behavior?


Eugene
ScummVM should interpret left mouse button as 1, right mouse button as 2, both left and right mousebuttons pressed simultaneously as 3, middle button (scroll wheel) as 4, just like in AGI Mouse, and if possible, support scroll wheel but with mouse only. Values for scroll wheel forward and backward could be 5 and 6.

What ScummVM should not do, is to interpret mousebuttons/wheel usage as keyboard activity like it does now. Restrict mousebuttons ( and scroll wheel) to only variable 27, variable 19 is for keyboard only.
User avatar
sev
ScummVM Lead
Posts: 2308
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

That's good, but forums are not suitable for such reports as they could be easily forgotten and lost. Please submit it here.


Eugene
Post Reply