X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2Finput%2Fmapper%2FKeyboardInputActionMapper.kt;h=8d18d070703931aeafdb4a41867d66e7c4b2cc35;hb=73cbf2cd2291283e1affe323783668d5ccc7fd66;hp=61e97932708cdcb07f122e8283a250fcfe0a89f1;hpb=9af7e45e07d903996eab693d958679ed699dcac7;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt b/core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt index 61e9793..8d18d07 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt @@ -27,6 +27,16 @@ class KeyboardInputActionMapper @Inject constructor() { Input.Keys.Q -> KeyboardInputActionKey.DropItem + Input.Keys.NUM_1 -> KeyboardInputActionKey.SelectHotbarSlot(0) + Input.Keys.NUM_2 -> KeyboardInputActionKey.SelectHotbarSlot(1) + Input.Keys.NUM_3 -> KeyboardInputActionKey.SelectHotbarSlot(2) + Input.Keys.NUM_4 -> KeyboardInputActionKey.SelectHotbarSlot(3) + Input.Keys.NUM_5 -> KeyboardInputActionKey.SelectHotbarSlot(4) + Input.Keys.NUM_6 -> KeyboardInputActionKey.SelectHotbarSlot(5) + Input.Keys.NUM_7 -> KeyboardInputActionKey.SelectHotbarSlot(6) + Input.Keys.NUM_8 -> KeyboardInputActionKey.SelectHotbarSlot(7) + Input.Keys.NUM_9 -> KeyboardInputActionKey.SelectHotbarSlot(8) + else -> null }