blob: 6b34d60abca9dd712d1641bd2df3c2d86fe06915 (
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
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
//============================================================
//
// input_wincommon.h - Common code used by Windows input modules
//
//============================================================
#ifndef MAME_OSD_INPUT_INPUT_WINCOMMON_H
#define MAME_OSD_INPUT_INPUT_WINCOMMON_H
#pragma once
#include "input_common.h"
#include <windows.h>
namespace osd {
// state information for a keyboard
struct keyboard_state
{
uint8_t state[MAX_KEYS];
int8_t oldkey[MAX_KEYS];
int8_t currkey[MAX_KEYS];
};
// state information for a mouse
struct mouse_state
{
LONG lX;
LONG lY;
LONG lV;
LONG lH;
BYTE rgbButtons[8];
};
} // namespace osd
#endif // MAME_OSD_INPUT_INPUT_WINCOMMON_H
|