2019-07-22 19:17:16 +02:00
|
|
|
#include "controls.h"
|
|
|
|
#include <gint/display.h>
|
2019-07-23 17:13:35 +02:00
|
|
|
#include <gint/std/stdlib.h>
|
|
|
|
#include <gint/std/stdio.h>
|
2019-07-22 19:17:16 +02:00
|
|
|
#include <stdbool.h>
|
2019-07-22 19:57:24 +02:00
|
|
|
#include "FxEngine/FxEngine.h"
|
2019-07-22 19:17:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
void init_controls()
|
|
|
|
{
|
|
|
|
dfont(&font_FxEngine);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool fps_visibility;
|
2019-07-23 17:13:35 +02:00
|
|
|
static char fps[10];
|
|
|
|
void reload_fps_displaying()
|
2019-07-22 19:17:16 +02:00
|
|
|
{
|
2019-07-23 17:13:35 +02:00
|
|
|
sprintf(fps,"%d",FE_get_fps_current());
|
|
|
|
}
|
|
|
|
void display_fps(int x, int y)
|
|
|
|
{
|
|
|
|
dimage(x,y,&img_fps);
|
|
|
|
dtext(x+11, y+2, fps, C_BLACK, C_NONE);
|
2019-07-22 19:17:16 +02:00
|
|
|
}
|