Skip to content

Commit 786d760

Browse files
committed
xrEngine: fix mouse keys names
1 parent 0be004e commit 786d760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrEngine/xr_input.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ bool CInput::get_key_name(int dik, LPSTR dest_str, int dest_sz)
199199
}
200200
xr_strcpy(dest_str, dest_sz, keyname);
201201
}
202+
else
203+
xr_sprintf(dest_str, dest_sz, "MOUSE%d", dik - SDL_NUM_SCANCODES);
202204

203205
return true;
204206
}

0 commit comments

Comments
 (0)