KEY_BACK was not referencing steam input's BACK enum but KEY's BACK enum. Release Build 8283.

pull/57/head
sigonasr2 8 months ago
parent fa79df59de
commit bdad7cf186
  1. 4
      Adventures in Lestoria/AdventuresInLestoria.cpp
  2. 6
      Adventures in Lestoria/Key.cpp
  3. 2
      Adventures in Lestoria/Version.h
  4. BIN
      x64/Release/Adventures in Lestoria.exe

@ -2924,7 +2924,7 @@ void AiL::InitializeDefaultKeybinds(){
KEY_BACK.AddKeybind({KEY,X}); KEY_BACK.AddKeybind({KEY,X});
KEY_BACK.AddKeybind({KEY,SHIFT}); KEY_BACK.AddKeybind({KEY,SHIFT});
KEY_BACK.AddKeybind({KEY,ESCAPE}); KEY_BACK.AddKeybind({KEY,ESCAPE});
KEY_BACK.AddKeybind({STEAM,BACK}); KEY_BACK.AddKeybind({STEAM,Steam::BACK});
KEY_BACK.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::FACE_D)}); KEY_BACK.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::FACE_D)});
KEY_MENU.AddKeybind({KEY,ESCAPE}); KEY_MENU.AddKeybind({KEY,ESCAPE});
KEY_MENU.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::START)}); KEY_MENU.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::START)});
@ -3299,8 +3299,6 @@ void AiL::RenderVersionInfo(){
DrawShadowStringDecal({4.f,4.f},"Save Complete.",{255,255,255,alpha},{0,0,0,alpha}); DrawShadowStringDecal({4.f,4.f},"Save Complete.",{255,255,255,alpha},{0,0,0,alpha});
} }
DrawShadowStringDecal({0.f,0.f},"Holding down A: "+std::to_string(KEY_CONFIRM.Held()));
std::string versionStr("v" + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_PATCH) + "." + std::to_string(VERSION_BUILD)); std::string versionStr("v" + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_PATCH) + "." + std::to_string(VERSION_BUILD));
DrawShadowStringDecal(vf2d{ GetScreenSize() } - vf2d{ GetTextSize(versionStr) }*0.4f,versionStr,WHITE,BLACK,{0.4f,0.4f},std::numeric_limits<float>::max(),0.4f); DrawShadowStringDecal(vf2d{ GetScreenSize() } - vf2d{ GetTextSize(versionStr) }*0.4f,versionStr,WHITE,BLACK,{0.4f,0.4f},std::numeric_limits<float>::max(),0.4f);
} }

@ -116,7 +116,7 @@ void Input::UpdateSteamInput(){
} }
bool Input::Pressed(){ bool Input::Pressed(){
//if(!game->IsFocused())return false; if(!game->IsFocused())return false;
bool inputPressed=false; bool inputPressed=false;
switch(type){ switch(type){
case KEY:{ case KEY:{
@ -150,7 +150,7 @@ bool Input::Pressed(){
} }
bool Input::Held(){ bool Input::Held(){
//if(!game->IsFocused())return false; if(!game->IsFocused())return false;
bool inputHeld=false; bool inputHeld=false;
switch(type){ switch(type){
case KEY:{ case KEY:{
@ -184,7 +184,7 @@ bool Input::Held(){
} }
bool Input::Released(){ bool Input::Released(){
//if(!game->IsFocused())return false; if(!game->IsFocused())return false;
bool inputReleased=false; bool inputReleased=false;
switch(type){ switch(type){
case KEY:{ case KEY:{

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 5 #define VERSION_MINOR 5
#define VERSION_PATCH 1 #define VERSION_PATCH 1
#define VERSION_BUILD 8281 #define VERSION_BUILD 8283
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Loading…
Cancel
Save