xbasipパッケージmouseモジュールmouse(cmd=0) -- 0:初期化, 1:表示, 2:非表示, 3:表示状態を返す, 4:初期化(ソフトキー無し)
cmd -- コマンド
戻り値 -- cmd=3の場合のみ
msarea(x1, y1, x2, y2)
x1 -- 始点X座標y1 -- 始点Y座標x2 -- 終点X座標y2 -- 終点Y座標setmspos(x, y)
x -- X座標y -- Y座標mspos()
戻り値 -- tupleで(x, y)をかえす
msstat()
戻り値 -- tupleで(x, y, btn_l, btn_r)を返す
x : X方向の相対移動量y : Y方向の相対移動量btn_l : 左ボタンの状態。押されていればTruebtn_r : 右ボタンの状態。押されていればTruemsbtn(wait_push=True, btn=0, time=0) -- btn: 0=左、1=右
wait_push -- 待つボタンの状態
btn -- ボタンの左右
time -- 待ち時間の最大値。0ならばずっと待つ