MPX patch for FreeGLUT, rev. 4

View: New views
3 Messages — Rating Filter:   Alert me  

MPX patch for FreeGLUT, rev. 4

by Florian Echtler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone,

I'd just like to announce that I've finally updated my MPX patch for
FreeGLUT to the most recent XInput2 API. It's available here:
http://tisch.sourceforge.net/freeglut-2.6.0-mpx-r4.patch

As this is probably the final version for both FreeGLUT 2.6.0 and XI2,
I'd be glad if somebody besides me who is running an XI2-enabled X
server could spare a few minutes to test it. Just use one of the
following functions:

void glutXExtensionEntryFunc( void (* callback)( int, int ) );
void glutXExtensionButtonFunc( void (* callback)( int, int, int, int, int ) );
void glutXExtensionMotionFunc( void (* callback)( int, int, int ) );
void glutXExtensionPassiveFunc( void (* callback)( int, int, int ) );

The callbacks behave like the normal GLUT ones, with the exception that
the very first parameter delivers the (slave) pointer ID. All other
parameters are like those of the GLUT functions.

Thanks, Yours, Florian
--
0666 - Filemode of the Beast


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: MPX patch for FreeGLUT, rev. 4

by Ryan Huffman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Florian,

I've been using your patch (older one) for some work I have been doing
and have had success with it.  I recently modified the patch to
support cookies and any other changes in the XI2 api and have had
success with that as well - I was planning to push the changes to the
list, but it appears you have already made the modifications (great to
hear!).

When compiling the r4 patched freeglut I get this error:

freeglut_xinput.c:196:6: error: #elif with no expression

I received this error with the first patch as well - I just changed
the #elif to #else and that fixed the problem.  So far I've tested the
new patch on a couple of my own apps and it all seems to be working -
thanks for the great work.  Let me know if you need any other help.

Ryan Huffman

On Mon, Aug 24, 2009 at 9:28 AM, Florian Echtler<floe@...> wrote:

> Hello everyone,
>
> I'd just like to announce that I've finally updated my MPX patch for
> FreeGLUT to the most recent XInput2 API. It's available here:
> http://tisch.sourceforge.net/freeglut-2.6.0-mpx-r4.patch
>
> As this is probably the final version for both FreeGLUT 2.6.0 and XI2,
> I'd be glad if somebody besides me who is running an XI2-enabled X
> server could spare a few minutes to test it. Just use one of the
> following functions:
>
> void glutXExtensionEntryFunc( void (* callback)( int, int ) );
> void glutXExtensionButtonFunc( void (* callback)( int, int, int, int, int ) );
> void glutXExtensionMotionFunc( void (* callback)( int, int, int ) );
> void glutXExtensionPassiveFunc( void (* callback)( int, int, int ) );
>
> The callbacks behave like the normal GLUT ones, with the exception that
> the very first parameter delivers the (slave) pointer ID. All other
> parameters are like those of the GLUT functions.
>
> Thanks, Yours, Florian
> --
> 0666 - Filemode of the Beast
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Freeglut-developer mailing list
> Freeglut-developer@...
> https://lists.sourceforge.net/lists/listinfo/freeglut-developer
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer

Re: MPX patch for FreeGLUT, rev. 4

by Florian Echtler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> When compiling the r4 patched freeglut I get this error:
> freeglut_xinput.c:196:6: error: #elif with no expression
> I received this error with the first patch as well - I just changed
> the #elif to #else and that fixed the problem.  So far I've tested the
> new patch on a couple of my own apps and it all seems to be working -
> thanks for the great work.  Let me know if you need any other help.

Hello Ryan,

thanks for your hint, I've fixed this in the patch now as well. Weird
that my gcc accepted it at all, but shouldn't be a problem anymore.

Florian

--
0666 - Filemode of the Beast


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer