haxball / haxball-issues

115 stars 43 forks source link

is it possible to get which key does player press with editing headless-min.js? #2006

Open kadavrahaxball opened 1 year ago

kadavrahaxball commented 1 year ago

for example i want to get callback if a player press the K button. is it possible?

basro commented 1 year ago

No, it is not possible since haxball doesn't send all the keys the player presses. Only sends the keys that are relevant to the game.

Please do not edit headless-min.js.