From: Florian E. <fl...@bu...> - 2011-02-20 17:02:06
|
Hello everyone, it's been a while, but I've managed to update my multitouch patch to freeglut to also support Windows 7 touch events now as well as XInput 2 events on *nix. I'd like to ask two things: - Is there any interest to integrate this into freeglut as an optional feature (i.e., something enabled by an explicit configure switch)? - The additional public interface currently looks like this: #define GLUT_HAS_MPX 1 FGAPI void FGAPIENTRY glutXExtensionEntryFunc( void (* callback)( int, int ) ); FGAPI void FGAPIENTRY glutXExtensionButtonFunc( void (* callback)( int, int, int, int, int ) ); FGAPI void FGAPIENTRY glutXExtensionMotionFunc( void (* callback)( int, int, int ) ); FGAPI void FGAPIENTRY glutXExtensionPassiveFunc( void (* callback)( int, int, int ) ); Obviously, the interface names is still influenced by the MPX origin (which has been superseded by XI2 anyway). The additional int parameter in every callback specifies the pointer or touchpoint ID which the data belongs to. Are there any suggestions from the side of the freeglut community as to how the API should look like w.r.t. naming etc.? (Particularly since the functions are now also supported in Windows 7). Thanks in advance for your suggestions! Florian |