mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
osd/modules/input: Fixed Linux build.
This commit is contained in:
parent
68472d3d72
commit
de9115a587
@ -562,13 +562,11 @@ int32_t dinput_joystick_device::pov_get_state(void *device_internal, void *item_
|
|||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
dinput_api_helper::dinput_api_helper()
|
dinput_api_helper::dinput_api_helper()
|
||||||
: m_dinput(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
dinput_api_helper::~dinput_api_helper()
|
dinput_api_helper::~dinput_api_helper()
|
||||||
{
|
{
|
||||||
m_dinput.Reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int dinput_api_helper::initialize()
|
int dinput_api_helper::initialize()
|
||||||
|
@ -494,7 +494,7 @@ public:
|
|||||||
for (int button = 0; button < m_button_count; button++)
|
for (int button = 0; button < m_button_count; button++)
|
||||||
{
|
{
|
||||||
input_item_id const itemid = input_item_id(ITEM_ID_BUTTON1 + button);
|
input_item_id const itemid = input_item_id(ITEM_ID_BUTTON1 + button);
|
||||||
device.add_item(default_button_name(button), std::string_view(), itemid, generic_button_get_state<std::int32_t>, &m_lightgun.buttons[button]);
|
device.add_item(default_button_name(button), itemid, generic_button_get_state<std::int32_t>, &m_lightgun.buttons[button]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add X and Y axis
|
// Add X and Y axis
|
||||||
|
Loading…
Reference in New Issue
Block a user