blob: 4c1325071d619324bbbb2772afdd45b7152f4074 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// license:BSD-3-Clause
// copyright-holders:Dankan1890
/***************************************************************************
ui/ctrlmenu.h
Internal UI user interface.
***************************************************************************/
#pragma once
#ifndef __UI_CTRLMENU_H__
#define __UI_CTRLMENU_H__
//-------------------------------------------------
// class controller mapping menu
//-------------------------------------------------
class ui_menu_controller_mapping : public ui_menu
{
public:
ui_menu_controller_mapping(running_machine &machine, render_container *container);
virtual ~ui_menu_controller_mapping();
virtual void populate() override;
virtual void handle() override;
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
private:
struct ctrl_option
{
int status;
const char *description;
const char *option;
};
static const char *m_device_status[];
static ctrl_option m_options[];
int check_status(const char *status, const char *option);
};
#endif /* __UI_CTRLMENU_H__ */
|