Sparky icon indicating copy to clipboard operation
Sparky copied to clipboard

Error right out of the box InputManager::ClearKeys()

Open LedLoaf opened this issue 2 years ago • 5 comments

Hello,

I'm just trying to get this to run so I could check it out more and see if I really want to follow all these videos to get to this point. Besides missing some references it ran pretty quickly.

At line 36 Exception Thrown: write access violation of Input.cpp.

m_KeyState[i] = false; <Unable to read memory>

Checking the callstack before this error it has

void FocusCallback(Window* window, bool focused) in Win32Window.cpp Line 150 m_windows->m_InputManager->ClearMouseButtons();

Any help would be appreciated.

EDIT: Also in the constructor I see this commented out.

		// m_KeyState = spnew bool[MAX_KEYS];
		// m_LastKeyState = spnew bool[MAX_KEYS];

LedLoaf avatar Apr 14 '22 04:04 LedLoaf

Nobody is able to help me out?

LedLoaf avatar Apr 15 '22 03:04 LedLoaf

Without looking at the latest master code, I would like to point out that the original Youtube series has ended in the development branch. Maybe you test that branch first. After ep. 26 the series has taken a new path if I remember correctly. https://github.com/TheCherno/Sparky/tree/development

C0D3D3V avatar Apr 15 '22 05:04 C0D3D3V

Thanks man, much appreciated I'll check that out.

LedLoaf avatar Apr 17 '22 04:04 LedLoaf

You can compile master branch out of the box, just need to ignore SandboxCS and SparkyCLI projects (I think in VCS it's "unload") because they're broken but also unnecessary if you don't plan to code in C#. Compiling Sandbox alone should be enough to run the default test scene. You have different test scenes commented out in https://github.com/TheCherno/Sparky/blob/master/Sandbox/src/Sandbox.cpp#L31 - you can uncomment whichever and recompile.

cprn avatar Oct 15 '22 11:10 cprn

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

pengyz avatar Oct 15 '22 11:10 pengyz