[bb] Joystick port detection by starfox [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:41

Previous topic - Next topic

BlitzBot

Title : Joystick port detection
Author : starfox
Posted : 1+ years ago

Description : This code was originally by semer

Code :
Code (blitzbasic) Select
max_port = 2
while not keyhit(1)
for test_port = 0 to max_port
if joydown(1,test_port) then
print "joystick detected on port " + str$(test_port)
exit
endif
next
wend
end


Comments : none...