mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
HPL1: allow input unlocking through config file option
This commit is contained in:
parent
28173eaed4
commit
27e06f4ef9
@ -107,7 +107,7 @@ static constexpr cButtonHandlerAction gvDefaultActions[] = {
|
||||
#ifdef __APPLE__
|
||||
{"QuitGame", "Keyboard", eKeyModifier_META | eKey_q, false},
|
||||
#endif
|
||||
//{"LockInput","Keyboard",eKey_k,false},
|
||||
{"LockInput","Keyboard", eKey_k, false},
|
||||
{"Screenshot", "Keyboard", eKey_F12, false},
|
||||
|
||||
//{"Hit","Keyboard",eKey_h,false},
|
||||
@ -219,11 +219,9 @@ void cButtonHandler::Update(float afTimeStep) {
|
||||
|
||||
mpInit->mpGame->GetGraphics()->GetLowLevel()->SaveScreenToBMP(sFileName);
|
||||
}
|
||||
if (mpInput->BecameTriggerd("LockInput")) {
|
||||
#ifndef WIN32
|
||||
if (mpInit->_allowInputUnlock && mpInput->BecameTriggerd("LockInput")) {
|
||||
bLockState = !bLockState;
|
||||
mpInit->mpGame->GetInput()->GetLowLevel()->LockInput(bLockState);
|
||||
#endif
|
||||
}
|
||||
///////////////////////////////////
|
||||
// DEMO END TEXT
|
||||
|
@ -173,6 +173,7 @@ bool cInit::Init(tString saveToLoad) {
|
||||
mbSimpleWeaponSwing = getBoolConfig("simple_weapon_swing", false);
|
||||
mbDisablePersonalNotes = getBoolConfig("disable_personal_notes", false);
|
||||
mbAllowQuickSave = getBoolConfig("allow_quick_save", false);
|
||||
_allowInputUnlock = getBoolConfig("allow_input_unlock", false);
|
||||
mbFlashItems = getBoolConfig("flash_items", true);
|
||||
mbShowCrossHair = getBoolConfig("show_crosshair", false);
|
||||
|
||||
@ -582,6 +583,7 @@ void cInit::Exit() {
|
||||
ConfMan.setBool("simple_weapon_swing", mbSimpleWeaponSwing);
|
||||
ConfMan.setBool("disable_personal_notes", mbDisablePersonalNotes);
|
||||
ConfMan.setBool("allow_quick_save", mbAllowQuickSave);
|
||||
ConfMan.setBool("allow_input_unlock", _allowInputUnlock);
|
||||
ConfMan.setBool("flash_tems", mbFlashItems);
|
||||
ConfMan.setBool("show_crosshair", mbShowCrossHair);
|
||||
|
||||
|
@ -138,6 +138,7 @@ public:
|
||||
bool mbSimpleWeaponSwing;
|
||||
bool mbDisablePersonalNotes;
|
||||
bool mbAllowQuickSave;
|
||||
bool _allowInputUnlock;
|
||||
bool mbFlashItems;
|
||||
bool mbSimpleSwingInOptions;
|
||||
bool mbShowCrossHair;
|
||||
|
Loading…
Reference in New Issue
Block a user