mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Add hotkey for "EnableTexCoordBounds" setting.
This commit is contained in:
parent
e70c9bfcd7
commit
370e57b131
|
@ -174,6 +174,8 @@ const char* Config::hotkeyIniName(u32 _idx)
|
||||||
return "hkHdTexReload";
|
return "hkHdTexReload";
|
||||||
case Config::HotKey::hkHdTexToggle:
|
case Config::HotKey::hkHdTexToggle:
|
||||||
return "hkHdTexToggle";
|
return "hkHdTexToggle";
|
||||||
|
case Config::HotKey::hkTexCoordBounds:
|
||||||
|
return "hkTexCoordBounds";
|
||||||
case Config::HotKey::hkVsync:
|
case Config::HotKey::hkVsync:
|
||||||
return "hkVsync";
|
return "hkVsync";
|
||||||
case Config::HotKey::hkFBEmulation:
|
case Config::HotKey::hkFBEmulation:
|
||||||
|
|
|
@ -220,6 +220,7 @@ struct Config
|
||||||
hkTexDump = 0,
|
hkTexDump = 0,
|
||||||
hkHdTexReload,
|
hkHdTexReload,
|
||||||
hkHdTexToggle,
|
hkHdTexToggle,
|
||||||
|
hkTexCoordBounds,
|
||||||
hkVsync,
|
hkVsync,
|
||||||
hkFBEmulation,
|
hkFBEmulation,
|
||||||
hkN64DepthCompare,
|
hkN64DepthCompare,
|
||||||
|
|
|
@ -80,6 +80,8 @@ QString ConfigDialog::_hotkeyDescription(quint32 _idx) const
|
||||||
return tr("Reload HD textures");
|
return tr("Reload HD textures");
|
||||||
case Config::HotKey::hkHdTexToggle:
|
case Config::HotKey::hkHdTexToggle:
|
||||||
return tr("Toggle HD textures");
|
return tr("Toggle HD textures");
|
||||||
|
case Config::HotKey::hkTexCoordBounds:
|
||||||
|
return tr("Toggle texcoords bounds");
|
||||||
case Config::HotKey::hkVsync:
|
case Config::HotKey::hkVsync:
|
||||||
return tr("Toggle VSync");
|
return tr("Toggle VSync");
|
||||||
case Config::HotKey::hkFBEmulation:
|
case Config::HotKey::hkFBEmulation:
|
||||||
|
|
|
@ -130,6 +130,13 @@ static void checkHotkeys()
|
||||||
textureCache().toggleDumpTex();
|
textureCache().toggleDumpTex();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (osal_is_key_pressed(config.hotkeys.keys[Config::hkTexCoordBounds], 0x0001)) {
|
||||||
|
if (config.graphics2D.enableTexCoordBounds == 0)
|
||||||
|
dwnd().getDrawer().showMessage("Bound texrect texture coordinates on\n", Milliseconds(1000));
|
||||||
|
else
|
||||||
|
dwnd().getDrawer().showMessage("Bound texrect texture coordinates off\n", Milliseconds(1000));
|
||||||
|
config.graphics2D.enableTexCoordBounds = !config.graphics2D.enableTexCoordBounds;
|
||||||
|
}
|
||||||
|
|
||||||
if (osal_is_key_pressed(config.hotkeys.keys[Config::hkVsync], 0x0001)) {
|
if (osal_is_key_pressed(config.hotkeys.keys[Config::hkVsync], 0x0001)) {
|
||||||
config.video.verticalSync = !config.video.verticalSync;
|
config.video.verticalSync = !config.video.verticalSync;
|
||||||
|
|
|
@ -29,6 +29,8 @@ const char* _hotkeyDescription(u32 _idx)
|
||||||
return "Hotkey: reload HD textures";
|
return "Hotkey: reload HD textures";
|
||||||
case Config::HotKey::hkHdTexToggle:
|
case Config::HotKey::hkHdTexToggle:
|
||||||
return "Hotkey: toggle HD textures";
|
return "Hotkey: toggle HD textures";
|
||||||
|
case Config::HotKey::hkTexCoordBounds:
|
||||||
|
return "Hotkey: toggle texcoords bounds";
|
||||||
case Config::HotKey::hkVsync:
|
case Config::HotKey::hkVsync:
|
||||||
return "Hotkey: toggle VSync";
|
return "Hotkey: toggle VSync";
|
||||||
case Config::HotKey::hkFBEmulation:
|
case Config::HotKey::hkFBEmulation:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user