1
Share your theme / Re: list of games like Pandora's?
« on: July 07, 2020, 09:06:39 PM »
can you make the .png frame move with the list game?
it doesn't matter the sequence !!
it doesn't matter the sequence !!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include "KeyboardHandler.h"
KeyboardHandler::KeyboardHandler(SDL_Scancode s)
: scancode_(s)
, pressed_(false)
{
}
void KeyboardHandler::reset()
{
pressed_= false;
}
bool KeyboardHandler::update(SDL_Event &e)
{
if(e.type != SDL_KEYUP && e.type != SDL_KEYDOWN) return false;
if(e.key.keysym.scancode == scancode_)
{
pressed_ = (e.type == SDL_KEYDOWN);
return true;
}
return false;
}
bool KeyboardHandler::pressed()
{
return pressed_;
}
void KeyboardHandler::updateKeystate()
{
const Uint8 *state = SDL_GetKeyboardState(NULL);
// pressed_ = state[scancode_];
}
I installed the correct location now, but it continues to generate errors!C:\Users\julio>cd c:\retrofe