diff options
author | 2008-09-09 17:11:52 +0000 | |
---|---|---|
committer | 2008-09-09 17:11:52 +0000 | |
commit | ec2639d221a85869250ebb8e3fa3a70701220334 (patch) | |
tree | d21003bb945126a46f094ae7c6ebede4a870e7bb /src/emu/render.h | |
parent | 9b4e46fad5b2d290ffec5c0d2ee94176a4fdf33c (diff) |
OSD notice: you now need to report separate mouse up/mouse down events
for this new support to work.
Clickable input support. Mostly by Nathan. A few changes from the
proposal:
* as far as the layout is concerned, states are 0 (off) or 1 (on) and
aren't impacted by the port's ACTIVE_HIGH or ACTIVE_LOW
* instead of checking each individual field for a hit, we look to see
what is hit once per frame and then just check against that; this
is faster, but does limit us to a single hit item
* added function input_field_by_tag_and_mask() to look up a particular
input_field_config by tag and mask; this makes it possible to easily
get the port default value or other information as necessary
Diffstat (limited to 'src/emu/render.h')
-rw-r--r-- | src/emu/render.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/render.h b/src/emu/render.h index 8164ea4e340..75ed9416591 100644 --- a/src/emu/render.h +++ b/src/emu/render.h @@ -410,6 +410,9 @@ const render_primitive_list *render_target_get_primitives(render_target *target) /* attempts to map a point on the specified render_target to the specified container, if possible */ int render_target_map_point_container(render_target *target, INT32 target_x, INT32 target_y, render_container *container, float *container_x, float *container_y); +/* attempts to map a point on the specified render_target to the specified container, if possible */ +int render_target_map_point_input(render_target *target, INT32 target_x, INT32 target_y, const char **input_tag, UINT32 *input_mask, float *input_x, float *input_y); + /* ----- render texture management ----- */ |