Started project, implemented keyboard and controller movement
This commit is contained in:
parent
b1f5d882f0
commit
d8fa53801b
33 changed files with 931 additions and 73 deletions
20
src/GameCommands/MoveYCommand.h
Normal file
20
src/GameCommands/MoveYCommand.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef MOVE_Y_COMMAND_H
|
||||
#define MOVE_Y_COMMAND_H
|
||||
|
||||
|
||||
#include "AxisCommand.h"
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
class MoveYCommand : public AxisCommand
|
||||
{
|
||||
public:
|
||||
MoveYCommand(SDL_FPoint & directionInput) : m_directionInput(&directionInput){};
|
||||
~MoveYCommand() {};
|
||||
void Execute(float value) override { m_directionInput->y = value;}
|
||||
private:
|
||||
SDL_FPoint * m_directionInput;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue