summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-01-27 08:13:06 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-01-27 08:13:06 +0000
commit921e6203a52a40ca0db48a01bb04e66788ab7ca8 (patch)
tree3600345ddd9c106b616bdf1527ba59dd166c0ea8 /src/emu/inptport.h
parent40181d18cc1a6abf0f771246c434fc0323d4e60c (diff)
> From: atari_ace@frontier.com
> To: submit@mamedev.org > CC: atariace@hotmail.com > Subject: [patch] Cleanup natural keyboard support > Date: Tue, 14 Dec 2010 07:20:08 -0800 > > Hi mamedev, > > inputx_setup_natural_keyboard sets callbacks from the core into the > drivers which lack machine or device pointers. This means that > drivers that use this api can't completely place their state in > non-global storage. This patch fixes that by adding the machine > parameter to the callbacks, and places the implementation data into > input_port_private as well. > > This really only affects MESS, since nothing in MAME uses this api. > > ~aa
Diffstat (limited to 'src/emu/inptport.h')
-rw-r--r--src/emu/inptport.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/inptport.h b/src/emu/inptport.h
index 3239d39eb3f..a8b466ce5a6 100644
--- a/src/emu/inptport.h
+++ b/src/emu/inptport.h
@@ -1175,10 +1175,10 @@ int input_machine_has_keyboard(running_machine *machine);
void inputx_init(running_machine *machine);
/* called by drivers to setup natural keyboard support */
-void inputx_setup_natural_keyboard(
- int (*queue_chars)(const unicode_char *text, size_t text_len),
- int (*accept_char)(unicode_char ch),
- int (*charqueue_empty)(void));
+void inputx_setup_natural_keyboard(running_machine *machine,
+ int (*queue_chars)(running_machine *machine, const unicode_char *text, size_t text_len),
+ int (*accept_char)(running_machine *machine, unicode_char ch),
+ int (*charqueue_empty)(running_machine *machine));
/* validity checks */
int validate_natural_keyboard_statics(void);