Merge branch 'master' of https://github.com/zpl-c/eco2d
commit
1631e9199b
|
@ -63,8 +63,10 @@ int32_t pkt_send_keystate_handler(pkt_header *header) {
|
|||
i->y = zpl_clamp(table.y, -1.0f, 1.0f);
|
||||
i->mx = table.mx;
|
||||
i->my = table.my;
|
||||
i->hx = (i->x != 0.0f) ? i->x : i->hx;
|
||||
i->hy = (i->y != 0.0f) ? i->y : i->hy;
|
||||
if (i->x != 0.0f && i->y != 0.0f) {
|
||||
i->hx = i->x;
|
||||
i->hy = i->y;
|
||||
}
|
||||
i->use |= table.use;
|
||||
i->sprint = table.sprint;
|
||||
i->ctrl = table.ctrl;
|
||||
|
|
Loading…
Reference in New Issue