Add renderer for displaying virtual gamepad on screen
This commit is contained in:
parent
fb4f1ed8fd
commit
599b29d825
4 changed files with 131 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "automap.h"
|
||||
#include "controls/touch/renderers.h"
|
||||
#include "cursor.h"
|
||||
#include "dead.h"
|
||||
#include "doom.h"
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
#include "qol/xpbar.h"
|
||||
#include "stores.h"
|
||||
#include "towners.h"
|
||||
#include "utils/display.h"
|
||||
#include "utils/endian.hpp"
|
||||
#include "utils/log.hpp"
|
||||
|
||||
|
|
@ -1735,6 +1737,12 @@ void DrawAndBlit()
|
|||
|
||||
DrawMain(hgt, ddsdesc, drawhpflag, drawmanaflag, drawsbarflag, drawbtnflag);
|
||||
|
||||
#if defined(VIRTUAL_GAMEPAD) && !defined(USE_SDL1)
|
||||
SDL_Surface *sdlOutputSurface = GetOutputSurface();
|
||||
Surface outputSurface(sdlOutputSurface);
|
||||
DrawVirtualGamepad(outputSurface);
|
||||
#endif
|
||||
|
||||
RenderPresent();
|
||||
|
||||
drawhpflag = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue