WinJoystickMex for 64 bit Windows?

I just tried using this mex file on a 64 bit Win7 machine and I'm getting an 'undefined function' error even though the mex is in the pwd. My guess is that it's because I have a .mexw32 file; is there any chance of a version compiled for 64 bit?

Thanks
-andrew
The main reason I haven't compiled it myself is that I don't know how. I know very little about C, hence asking for help!

I'll check that other implementation.
-andrew

--- In psychtoolbox@yahoogroups.com, Matthew Edmundson <medmunds@...> wrote:
>
> My first thought would be to compile it yourself, but there must be some
> non-trivial reason why this hasn't already been done. Mario obviously will
> know. For kicks the other day, I tried compiling it myself on the 32-bit
> side using the compile string that is provided in the header of
> WinJoystickMex.c, but the compiler couldn't find the JOYINFO structure, so
> it wouldn't compile. The following is the line from the header that I used,
> in MATLAB 2012b, but apparently it still can't find the library where
> JOYINFO is included:
>
> mex -v -g WinJoystickMex.c winmm.lib
>
> Anyway, our project actually needs more than four buttons, and JOYINFO is
> limited to four, so we've had to go with a DirectInput implementation,
> instead, choosing from one of the following, which also happen to have w64
> mex files:
> http://www.mathworks.com/matlabcentral/linkexchange/?term=tag%3A%22gamepad%22
>
>
> Best,
> Matthew
>
>
> On Wed, Jun 5, 2013 at 4:30 AM, adwkiwi <adwkiwi@...> wrote:
>
> > **
> >
> >
> > I just tried using this mex file on a 64 bit Win7 machine and I'm getting
> > an 'undefined function' error even though the mex is in the pwd. My guess
> > is that it's because I have a .mexw32 file; is there any chance of a
> > version compiled for 64 bit?
> >
> > Thanks
> > -andrew
> >
> >
> >
>
WinJoystickMex.mexw64 for 64-Bit Matlab on 64-Bit Windows is part of PTB since the PTB beta from 15.09.2012. I just tried it on Windows-7 with R2012a and it works for me.

Is your ptb beta up to date?
-mario

--- In psychtoolbox@yahoogroups.com, "adwkiwi" <adwkiwi@...> wrote:
>
> The main reason I haven't compiled it myself is that I don't know how. I know very little about C, hence asking for help!
>
> I'll check that other implementation.
> -andrew
>
> --- In psychtoolbox@yahoogroups.com, Matthew Edmundson <medmunds@> wrote:
> >
> > My first thought would be to compile it yourself, but there must be some
> > non-trivial reason why this hasn't already been done. Mario obviously will
> > know. For kicks the other day, I tried compiling it myself on the 32-bit
> > side using the compile string that is provided in the header of
> > WinJoystickMex.c, but the compiler couldn't find the JOYINFO structure, so
> > it wouldn't compile. The following is the line from the header that I used,
> > in MATLAB 2012b, but apparently it still can't find the library where
> > JOYINFO is included:
> >
> > mex -v -g WinJoystickMex.c winmm.lib
> >
> > Anyway, our project actually needs more than four buttons, and JOYINFO is
> > limited to four, so we've had to go with a DirectInput implementation,
> > instead, choosing from one of the following, which also happen to have w64
> > mex files:
> > http://www.mathworks.com/matlabcentral/linkexchange/?term=tag%3A%22gamepad%22
> >
> >
> > Best,
> > Matthew
> >
> >
> > On Wed, Jun 5, 2013 at 4:30 AM, adwkiwi <adwkiwi@> wrote:
> >
> > > **
> > >
> > >
> > > I just tried using this mex file on a 64 bit Win7 machine and I'm getting
> > > an 'undefined function' error even though the mex is in the pwd. My guess
> > > is that it's because I have a .mexw32 file; is there any chance of a
> > > version compiled for 64 bit?
> > >
> > > Thanks
> > > -andrew
> > >
> > >
> > >
> >
>
I'll check (not my machine). Thanks though, if it's working on yours then it should eventually work on this one. The 32/64 bit issue was just a guess anyway!
-andrew

--- In psychtoolbox@yahoogroups.com, "Mario" <mario.kleiner@...> wrote:
>
>
>
> WinJoystickMex.mexw64 for 64-Bit Matlab on 64-Bit Windows is part of PTB since the PTB beta from 15.09.2012. I just tried it on Windows-7 with R2012a and it works for me.
>
> Is your ptb beta up to date?
> -mario