~ubuntu-branches/debian/stretch/gource/stretch

« back to all changes in this revision

Viewing changes to src/core/sdlapp.h

  • Committer: Package Import Robot
  • Author(s): Andrew Caudwell
  • Date: 2014-04-15 16:30:17 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20140415163017-ucdr2josj1spzrga
Tags: 0.41-1
* New upstream release
* Made VCS URIs canonical
* Changed watch file to look at Github for releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "windows.h"
39
39
#endif
40
40
 
41
 
#include "display.h"
42
 
#include "logger.h"
 
41
#include "gl.h"
43
42
 
44
 
#include <stdexcept>
 
43
#include <string>
 
44
#include <exception>
45
45
#include <vector>
46
46
 
47
47
extern std::string gSDLAppConfDir;
97
97
protected:
98
98
    int  min_delta_msec;
99
99
    bool appFinished;
 
100
 
100
101
    void stop(int return_code);
101
102
 
 
103
    virtual bool handleEvent(SDL_Event& event);
102
104
public:
103
105
    float fps;
104
106
 
138
140
    virtual void mouseClick(SDL_MouseButtonEvent *e) {};
139
141
    virtual void keyPress(SDL_KeyboardEvent *e) {};
140
142
 
141
 
#if SDL_VERSION_ATLEAST(1,3,0)
 
143
#if SDL_VERSION_ATLEAST(2,0,0)
 
144
    virtual void textInput(SDL_TextInputEvent* e)  {};
 
145
    virtual void textEdit(SDL_TextEditingEvent* e) {};
 
146
 
142
147
    virtual void mouseWheel(SDL_MouseWheelEvent *e) {};
143
148
#endif
144
149