Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
New to QB64pe? Visit the QB64 tutorial to get started.
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: 2 Guest(s)