Greater Rift minion life fix (#23); Mac click-to-walk and keyboard key names; older-API declaration de-duplication
This commit is contained in:
@@ -98,6 +98,7 @@ static void on_key(NSEvent *e, int down) {
|
||||
unsigned short c = e.keyCode;
|
||||
switch (c) { case 13: g_w = down; break; case 0: g_a = down; break; case 1: g_s = down; break; case 2: g_d = down; break; }
|
||||
int b = key_bit(c);
|
||||
if (down && (b >= 0 || c == 13 || c <= 2)) { void dm_padmode_request_kbd(int kbd); dm_padmode_request_kbd(1); } // 按了游戏用的键:键位图标换成键盘键帽(鼠标移动 / 点击不算) | a key used by the game was pressed: switch the key icons to keyboard key caps (mouse moves / clicks do not count)
|
||||
if (b >= 0) g_btn = down ? (g_btn | 1ull << b) : (g_btn & ~(1ull << b));
|
||||
push();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user