Joysticks on a Mac, _DEVICEINPUT() - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Joysticks on a Mac, _DEVICEINPUT() (/showthread.php?tid=2879) |
Joysticks on a Mac, _DEVICEINPUT() - NakedApe - 07-23-2024 Does anybody know if _DEVICE$ and _DEVICEINPUT() work on MacOS? I was just noodling around with a cheap joystick I got, but any reference to _DEVICEINPUT(3) causes an Illegal Function error. Also the stick doesn't show up as connected under _DEVICE$. I was using a few of Terry's (@TerryRitchie) joystick and device demo programs to get started. This mashup below sorta works - it gets some input from the stick, but only when the stick is moved from the zero, zero position - when action is detected generically. Without using _DEVICEINPUT(3) I can't get actual live input. What's a guy to do? Thanks. Code: (Select All)
RE: Joysticks on a Mac, _DEVICEINPUT() - a740g - 07-24-2024 I'll can test with an XBox 360 controller during the weekend. Will let you know. RE: Joysticks on a Mac, _DEVICEINPUT() - NakedApe - 07-24-2024 Thanks, a740g! RE: Joysticks on a Mac, _DEVICEINPUT() - a740g - 07-28-2024 Quick update: So, it seems that macOS does not support a wired Xbox 360 controller. Also, the PS4 and the Xbox One controllers are supported only when connected via BT. https://support.apple.com/en-us/111099 I am still trying to figure out how to get my wired Xbox 360 controller to work. There is this: https://github.com/360Controller/360Controller But it has not been updated in ages and there is no support for Big Sur and above. RE: Joysticks on a Mac, _DEVICEINPUT() - NakedApe - 07-29-2024 Thanks, sounds like I need a PC for this assignment. Appreciate you taking a look! |