mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
fix: input dropping sometimes
This commit is contained in:
@@ -70,7 +70,7 @@ int input_getdat(time_t time) {
|
|||||||
|
|
||||||
// handle releasing of keys
|
// handle releasing of keys
|
||||||
mov &= ~(nmov & lmov & mask); // only remove the keys that have been pressed since lmov
|
mov &= ~(nmov & lmov & mask); // only remove the keys that have been pressed since lmov
|
||||||
lmov = mov; // set the value of lmov to the new value mov
|
lmov = (mov & mask) | (lmov & ~mask); // set the value of lmov to the new value mov
|
||||||
nmov &= mov; // set nmov to only those in mov
|
nmov &= mov; // set nmov to only those in mov
|
||||||
int cmov = mov & mask;
|
int cmov = mov & mask;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user