1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2025-01-03 14:56:23 -05:00

wasd conflicting with the S key

This commit is contained in:
me 2022-06-24 00:08:02 +04:30
parent 5ec7174e3e
commit d88871869f

2
sos.c
View File

@ -405,7 +405,7 @@ int main(int argc, char** argv){
mouseinput(sy,sx);
if( (input=='k' || (input==KEY_UP||input=='w')) && py>0)
--py;
if( (input=='j' || (input==KEY_DOWN||input=='s')) && py<len-1)
if( (input=='j' || (input==KEY_DOWN)) && py<len-1)
++py;
if( (input=='h' || (input==KEY_LEFT||input=='a')) && px>0)
--px;