summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pckeybrd.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/machine/pckeybrd.h
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/devices/machine/pckeybrd.h')
-rw-r--r--src/devices/machine/pckeybrd.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/machine/pckeybrd.h b/src/devices/machine/pckeybrd.h
index 58861fc288c..5b493f858e1 100644
--- a/src/devices/machine/pckeybrd.h
+++ b/src/devices/machine/pckeybrd.h
@@ -19,8 +19,8 @@
class pc_keyboard_device : public device_t
{
public:
- pc_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
- pc_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
+ pc_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ pc_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE_LINE_MEMBER(enable);
@@ -40,7 +40,7 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
- void queue_insert(UINT8 data);
+ void queue_insert(uint8_t data);
void clear_buffer(void);
int m_numlock;
@@ -48,8 +48,8 @@ protected:
private:
void polling(void);
- UINT32 readport(int port);
- UINT8 unicode_char_to_at_keycode(char32_t ch);
+ uint32_t readport(int port);
+ uint8_t unicode_char_to_at_keycode(char32_t ch);
virtual void standard_scancode_insert(int our_code, int pressed);
virtual void extended_scancode_insert(int code, int pressed) { }
@@ -59,13 +59,13 @@ private:
bool charqueue_empty();
bool m_on;
- UINT8 m_delay; /* 240/60 -> 0,25s */
- UINT8 m_repeat; /* 240/ 8 -> 30/s */
+ uint8_t m_delay; /* 240/60 -> 0,25s */
+ uint8_t m_repeat; /* 240/ 8 -> 30/s */
- UINT8 m_queue[256];
- UINT8 m_head;
- UINT8 m_tail;
- UINT8 m_make[128];
+ uint8_t m_queue[256];
+ uint8_t m_head;
+ uint8_t m_tail;
+ uint8_t m_make[128];
optional_ioport m_ioport_0;
optional_ioport m_ioport_1;
@@ -83,7 +83,7 @@ private:
class at_keyboard_device : public pc_keyboard_device
{
public:
- at_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ at_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
DECLARE_WRITE8_MEMBER( write );