We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912daec commit d788b37Copy full SHA for d788b37
1 file changed
src/scripts/EventHandler.js
@@ -15,7 +15,8 @@ class EventHandler {
15
KeyA: 'left',
16
Space: 'jump',
17
ShiftLeft: 'sneak',
18
- KeyR: 'sprint'
+ KeyR: 'sprint',
19
+ KeyQ: 'drop'
20
}
21
this.keys = {}
22
this.gameState = null
@@ -43,6 +44,9 @@ class EventHandler {
43
44
focus = i - 1
45
46
47
+ if (z.code === 'KeyQ') {
48
+ this.game.socket.emit('drop')
49
+ }
50
if (z.code === 'Escape' && this.gameState === 'inventory') {
51
this.setState('menu')
52
0 commit comments