mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 04:18:11 +00:00
[client] main: don't use Linux keybinds if the guest is not Linux
This commit is contained in:
@@ -948,3 +948,28 @@ void app_invalidateOverlay(bool renderTwice)
|
||||
g_state.renderImGuiTwice = true;
|
||||
app_invalidateWindow(false);
|
||||
}
|
||||
|
||||
bool app_guestIsLinux(void)
|
||||
{
|
||||
return g_state.guestOS == KVMFR_OS_LINUX;
|
||||
}
|
||||
|
||||
bool app_guestIsWindows(void)
|
||||
{
|
||||
return g_state.guestOS == KVMFR_OS_WINDOWS;
|
||||
}
|
||||
|
||||
bool app_guestIsOSX(void)
|
||||
{
|
||||
return g_state.guestOS == KVMFR_OS_OSX;
|
||||
}
|
||||
|
||||
bool app_guestIsBSD(void)
|
||||
{
|
||||
return g_state.guestOS == KVMFR_OS_BSD;
|
||||
}
|
||||
|
||||
bool app_guestIsOther(void)
|
||||
{
|
||||
return g_state.guestOS == KVMFR_OS_OTHER;
|
||||
}
|
||||
|
Reference in New Issue
Block a user