Add controller button icons in hotkeys, separate keyboard hotkeys and controller hotkeys

This commit is contained in:
dec05eba
2025-03-18 19:13:16 +01:00
parent 44e7f57d21
commit dc70bd27f2
16 changed files with 134 additions and 15 deletions

View File

@@ -67,4 +67,11 @@ namespace gsr {
return from;
}
mgl::vec2f clamp_keep_aspect_ratio(mgl::vec2f from, mgl::vec2f to) {
if(from.x > to.x || from.y > to.y)
return scale_keep_aspect_ratio(from, to);
else
return from;
}
}