LPJOYINFOEX [solved]

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

LPJOYINFOEX [solved]

Postby Eponasoft » Dec 26, 2012 16:29

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

Postby Eponasoft » Dec 26, 2012 16:42

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.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 7 guests