1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-06-08 17:20:41 +00: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); mouseinput(sy,sx);
if( (input=='k' || (input==KEY_UP||input=='w')) && py>0) if( (input=='k' || (input==KEY_UP||input=='w')) && py>0)
--py; --py;
if( (input=='j' || (input==KEY_DOWN||input=='s')) && py<len-1) if( (input=='j' || (input==KEY_DOWN)) && py<len-1)
++py; ++py;
if( (input=='h' || (input==KEY_LEFT||input=='a')) && px>0) if( (input=='h' || (input==KEY_LEFT||input=='a')) && px>0)
--px; --px;