Ooops
November 25, 2020, 05:25:42 AM

Author Topic: [bb] Joystick port detection by starfox [ 1+ years ago ]  (Read 551 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Joystick port detection by starfox [ 1+ years ago ]
« on: June 29, 2017, 12:28:41 AM »
Title : Joystick port detection
Author : starfox
Posted : 1+ years ago

Description : This code was originally by semer

Code :
Code: BlitzBasic
  1. max_port = 2
  2. while not keyhit(1)
  3. for test_port = 0 to max_port
  4. if joydown(1,test_port) then
  5. print "joystick detected on port " + str$(test_port)
  6. exit
  7. endif
  8. next
  9. wend
  10. end


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal