Changeset cd1cb0f in opengl-game for game-gui-sdl.hpp


Ignore:
Timestamp:
Dec 24, 2019, 12:48:49 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
0fe8433
Parents:
a79be34
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (12/22/19 03:45:12)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (12/24/19 00:48:49)
Message:

In VulkanGame, make the ship move when the player holds down the right or left arrow keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.hpp

    ra79be34 rcd1cb0f  
    1414class GameGui_SDL : public GameGui {
    1515   public:
     16      GameGui_SDL();
     17
    1618      string& getError();
    1719
     
    2426      void processEvents();
    2527      int pollEvent(UIEvent* event);
     28      bool keyPressed(unsigned int key);
    2629
    2730      void refreshWindowSize();
     
    3740      SDL_Window* window;
    3841      int windowWidth, windowHeight;
     42      const Uint8* keyState;
    3943
    4044      static string s_errorMessage;
Note: See TracChangeset for help on using the changeset viewer.