[Scummvm-devel] Adding OSystem::getMouseState ?

Chris Apers chrilith at hotmail.com
Sat Feb 10 12:30:37 CET 2007


Hi,

Sounds good to me. I still have very hard time trying to add KeyUp 
support to PalmOS port since this event simply doesn't exists on many 
devices
and it is required by Gob and Touché engines.
This may ease implementation.

Chris


Max Horn wrote:
> Hi,
>
> do any porters have objections to adding a mandatory  
> OSystem::getMouseState method, which can be used by client code to  
> detect which mouse buttons are currently pressed (by returning a  
> bitmask) ? Rational: Right now it's possible for client code to  
> "miss" mouse up events, e.g. because they might be using several  
> event loops (and then there is the GUI which has it's own separate  
> event loop, too). See in particular bug #1510038 <https:// 
> sourceforge.net/tracker/? 
> func=detail&atid=418820&aid=1510038&group_id=37116>.
>
> An alternative way to approach this would be to finally implement the  
> "event manager" which we would also need for "automatic" keyboard  
> repeat control. It could keep track of these events and try to track  
> the mouse state (and keyboard state) this way. But doing this  
> requires that backends never "forget" to send any "up" events, of  
> course.
>
>
> Bye,
> Max
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
>
>
>   








More information about the Scummvm-devel mailing list