QB64 Game Tutorial Updated
#3
(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.
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply


Messages In This Thread
QB64 Game Tutorial Updated - by TerryRitchie - 04-19-2023, 01:36 AM
RE: QB64 Game Tutorial Updated - by Dimster - 04-19-2023, 03:13 PM
RE: QB64 Game Tutorial Updated - by TerryRitchie - 04-19-2023, 04:26 PM
RE: QB64 Game Tutorial Updated - by Dimster - 04-19-2023, 06:44 PM
RE: QB64 Game Tutorial Updated - by TerryRitchie - 04-19-2023, 09:49 PM
RE: QB64 Game Tutorial Updated - by TerryRitchie - 05-07-2023, 10:15 PM



Users browsing this thread: 1 Guest(s)