mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
31 lines
No EOL
667 B
C++
31 lines
No EOL
667 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "SettingTypes.h"
|
|
#include "ControlDeviceState.h"
|
|
|
|
class Emulator;
|
|
class DebugHud;
|
|
|
|
class InputHud
|
|
{
|
|
private:
|
|
Emulator* _emu;
|
|
DebugHud* _hud;
|
|
|
|
int _xOffset = 0;
|
|
int _yOffset = 0;
|
|
int _outlineWidth = 0;
|
|
int _outlineHeight = 0;
|
|
|
|
void DrawController(ControllerType type, int port, ControlDeviceState state);
|
|
|
|
public:
|
|
InputHud(Emulator *emu, DebugHud* hud);
|
|
|
|
void DrawOutline(int width, int height);
|
|
void DrawButton(int x, int y, int width, int height, bool pressed);
|
|
void DrawNumber(int number, int x, int y);
|
|
void EndDrawController();
|
|
|
|
void DrawControllers(FrameInfo size, vector<ControllerData> controllerData);
|
|
}; |