LPJOYINFOEX [solved]

Windows specific questions.
Post Reply
Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

LPJOYINFOEX [solved]

Post by Eponasoft »

So I'm wanting to use the joyGetPosEx WIN32 API call but am a bit confused as to how this particular calling convention works. Looks like pointer nightmares.

Code: Select all

dim as MMRESULT result2
dim as LPJOYINFOEX joystuff
joystuff->dwSize = sizeof(joystuff)
joystuff->dwFlags = JOY_RETURNALL
result2 = joyGetPosEx (0, joystuff)
No workie. :( What gives? I'm kind of new at this pointer mangling hooplah.
Last edited by Eponasoft on Dec 26, 2012 16:51, edited 1 time in total.
Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

Re: LPJOYINFOEX

Post by Eponasoft »

dkl helped me fix it on IRC.

Code: Select all

dim as MMRESULT result2
dim as JOYINFOEX joystuff
joystuff.dwSize = sizeof(joystuff)
joystuff.dwFlags = JOY_RETURNALL
result2 = joyGetPosEx (0, @joystuff)
Neato.
Post Reply