Rumble

ソース
assert(Rumble.isInserted(), "No rumble device inserted")
 
while not Keys.newPress.Start do
 
	Controls.read()
 
	if Keys.newPress.A then Rumble.set(true) end
	if Keys.newPress.B then Rumble.set(false) end
 
	screen.print(SCREEN_UP, 0, 0, "Press START to quit")
	screen.print(SCREEN_DOWN, 0, 0, "[A]: Rumble ON")
	screen.print(SCREEN_DOWN, 0, 8, "[B]: Rumble OFF")
 
	render()
 
end
 

実行結果





タグ:

+ タグ編集
  • タグ:
最終更新:2010年10月09日 21:33
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。
添付ファイル