mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
correctly paused input for game when chatting or in menu
This commit is contained in:
parent
e76e0e6f7e
commit
9f7a6a04b0
|
@ -95,8 +95,10 @@ int CONTROLS::snapinput(int *data)
|
||||||
last_data.direction = 0;
|
last_data.direction = 0;
|
||||||
last_data.hook = 0;
|
last_data.hook = 0;
|
||||||
last_data.jump = 0;
|
last_data.jump = 0;
|
||||||
|
|
||||||
input_data = last_data;
|
input_data = last_data;
|
||||||
|
|
||||||
|
input_direction_left = 0;
|
||||||
|
input_direction_right = 0;
|
||||||
|
|
||||||
mem_copy(data, &input_data, sizeof(input_data));
|
mem_copy(data, &input_data, sizeof(input_data));
|
||||||
return sizeof(input_data);
|
return sizeof(input_data);
|
||||||
|
|
Loading…
Reference in a new issue