【SmileBasic】 Pi STARTER GOTO 1 【RPi】 (256レス)
上下前次1-新
抽出解除 レス栞
79(1): 2018/10/13(土)21:12 ID:y2Zqv89b(1/4) AAS
何度もすまん、マジ教えて
ゲームパッドの十字キーの上下を判別したいんだが、できない
みようみまねだがこんなリスト作った
while 1
b=button(0,-1,0)
if (b and #bid_up) then print "up"
if (b and #bid_down) then print "down"
省14
80(1): 2018/10/13(土)21:38 ID:EP2alaaL(1/3) AAS
>>79
if文の()は要らないんじゃ?
@button-test
vsync 1
b=button() 'カッコ内は基本値だったので省略してます
if b and #bid_up then print"up"
goto @button-test
省3
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.011s