mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +03:00
Since there is no clear way to determine if mouse should be shown or not, I am putting a new flag (no whatsnew)
This commit is contained in:
parent
6158bbde8e
commit
73bad0ebd0
@ -72,6 +72,7 @@ const UINT32 GAME_TYPE_CONSOLE = 0x00080000; // console system
|
||||
const UINT32 GAME_TYPE_COMPUTER = 0x00100000; // any kind of computer including home computers, minis, calcs,...
|
||||
const UINT32 GAME_TYPE_OTHER = 0x00200000; // any other emulated system that doesn't fit above (ex. clock, satelite receiver,...)
|
||||
const UINT32 GAME_IMPERFECT_KEYBOARD = 0x00400000; // keyboard is known to be wrong
|
||||
const UINT32 GAME_CLICKABLE_ARTWORK = 0x00800000; // marking that artwork is clickable and require mouse cursor
|
||||
|
||||
// useful combinations of flags
|
||||
const UINT32 GAME_IS_SKELETON = GAME_NO_SOUND | GAME_NOT_WORKING; // mask for skelly games
|
||||
|
@ -175,14 +175,14 @@ int mame_execute(emu_options &options, osd_interface &osd)
|
||||
valid.check_shared_source(*system);
|
||||
}
|
||||
|
||||
ui_show_mouse(false);
|
||||
|
||||
// create the machine configuration
|
||||
machine_config config(*system, options);
|
||||
|
||||
// create the machine structure and driver
|
||||
running_machine machine(config, osd, started_empty);
|
||||
|
||||
ui_show_mouse(machine.system().flags & GAME_CLICKABLE_ARTWORK);
|
||||
|
||||
// looooong term: remove this
|
||||
global_machine = &machine;
|
||||
|
||||
|
@ -2156,8 +2156,6 @@ layout_view::item::item(running_machine &machine, xml_data_node &itemnode, simpl
|
||||
// allocate a copy of the input tag
|
||||
m_input_tag = xml_get_attribute_string_with_subst(machine, itemnode, "inputtag", "");
|
||||
|
||||
if (m_input_tag.len()>0) ui_show_mouse(true);
|
||||
|
||||
// find the associated element
|
||||
const char *name = xml_get_attribute_string_with_subst(machine, itemnode, "element", NULL);
|
||||
if (name != NULL)
|
||||
|
@ -273,4 +273,4 @@ ROM_START( 30test )
|
||||
ROM_LOAD( "tt1-voi0.7p", 0x0000, 0x80000, CRC(b4fc5921) SHA1(92a88d5adb50dae48715847f12e88a35e37ef78c) )
|
||||
ROM_END
|
||||
|
||||
GAMEL( 1997, 30test, 0, 30test, 30test, driver_device, 0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE, layout_30test )
|
||||
GAMEL( 1997, 30test, 0, 30test, 30test, driver_device, 0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE | GAME_CLICKABLE_ARTWORK, layout_30test )
|
||||
|
Loading…
Reference in New Issue
Block a user