04-19-2023, 04:26 PM
(This post was last modified: 04-19-2023, 04:36 PM by TerryRitchie.)
(04-19-2023, 03:13 PM)Dimster Wrote: Hi Terry - My keyboard and mouse are wireless. I'm not sure if this makes a difference. When I ran the very first example of _Device and _Device$, the results were an endless loop of Keyboard 1 and seems it never did find the mouse. Are the controller codes just for controllers connected to your computer? (keyboard and mouse are both Logitech.
Being wireless should not make a difference. DeviceCount in the first example should contain the number of controllers connected to your system? An endless loop would mean DeviceCount is very high (or 0) for some reason. Type this code in and let me know the number that's printed:
PRINT _DEVICES
If you typed the code in by hand check for typos. Make sure line 14 reads: Dcount = Dcount + 1
If there is a typo in that line then an endless loop showing keyboard like you are seeing will happen.
You can also download the tutorial asset file which contains all the example programs ready to open.