0
我趕上了綁定按鍵,到目前爲止大多數字符做工精細,直到我到了方向鍵(上下左右)Java的按鍵catchining方向鍵
我追趕其他鍵代碼是:
KeyStroke key_3 = KeyStroke.getKeyStroke("3");
如何捕捉方向鍵?
謝謝!
我趕上了綁定按鍵,到目前爲止大多數字符做工精細,直到我到了方向鍵(上下左右)Java的按鍵catchining方向鍵
我追趕其他鍵代碼是:
KeyStroke key_3 = KeyStroke.getKeyStroke("3");
如何捕捉方向鍵?
謝謝!
KeyStroke.getKeyStroke("UP")
,你可以指定Ctrl鍵,用
KeyStroke.getKeyStroke("control UP")
KeyStroke.getKeyStroke("shift UP"
移動版本