mirror of
https://github.com/holub/mame
synced 2025-06-26 22:29:10 +03:00
uintptr_t ftw (nw)
This commit is contained in:
parent
016367ba90
commit
7be9bb7dee
@ -52,7 +52,7 @@ void v9938_busmouse_device::device_reset()
|
|||||||
|
|
||||||
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_button_changed )
|
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_button_changed )
|
||||||
{
|
{
|
||||||
const int mask((uint64_t)param);
|
const int mask((uintptr_t)param);
|
||||||
LOGMASKED(LOG_BUTTON, "Button %d: %d\n", mask, newval);
|
LOGMASKED(LOG_BUTTON, "Button %d: %d\n", mask, newval);
|
||||||
if (newval==1)
|
if (newval==1)
|
||||||
m_bstate |= mask;
|
m_bstate |= mask;
|
||||||
@ -63,7 +63,7 @@ INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_button_changed )
|
|||||||
|
|
||||||
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_pos_changed )
|
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_pos_changed )
|
||||||
{
|
{
|
||||||
const int axis((uint64_t)param);
|
const int axis((uintptr_t)param);
|
||||||
int16_t pos = (int16_t)newval;
|
int16_t pos = (int16_t)newval;
|
||||||
int delta;
|
int delta;
|
||||||
|
|
||||||
|
@ -317,8 +317,8 @@ void ti99_gkracker_device::cruwrite(offs_t offset, uint8_t data)
|
|||||||
|
|
||||||
INPUT_CHANGED_MEMBER( ti99_gkracker_device::gk_changed )
|
INPUT_CHANGED_MEMBER( ti99_gkracker_device::gk_changed )
|
||||||
{
|
{
|
||||||
LOGMASKED(LOG_GKRACKER, "Input changed %d - %d\n", (int)((uint64_t)param & 0x07), newval);
|
LOGMASKED(LOG_GKRACKER, "Input changed %d - %d\n", (int)((uintptr_t)param & 0x07), newval);
|
||||||
m_gk_switch[(uint64_t)param & 0x07] = newval;
|
m_gk_switch[(uintptr_t)param & 0x07] = newval;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ti99_gkracker_device::insert(int index, ti99_cartridge_device* cart)
|
void ti99_gkracker_device::insert(int index, ti99_cartridge_device* cart)
|
||||||
|
@ -311,7 +311,7 @@ void ti99_multi_cart_conn_device::device_add_mconfig(machine_config &config)
|
|||||||
|
|
||||||
INPUT_CHANGED_MEMBER( ti99_multi_cart_conn_device::switch_changed )
|
INPUT_CHANGED_MEMBER( ti99_multi_cart_conn_device::switch_changed )
|
||||||
{
|
{
|
||||||
LOGMASKED(LOG_CHANGE, "Slot changed %d - %d\n", (int)((uint64_t)param & 0x07), newval);
|
LOGMASKED(LOG_CHANGE, "Slot changed %d - %d\n", (int)((uintptr_t)param & 0x07), newval);
|
||||||
m_active_slot = m_fixed_slot = newval - 1;
|
m_active_slot = m_fixed_slot = newval - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -294,7 +294,7 @@ INPUT_CHANGED_MEMBER( geneve_mapper_device::settings_changed )
|
|||||||
|
|
||||||
INPUT_CHANGED_MEMBER( genmod_mapper_device::setgm_changed )
|
INPUT_CHANGED_MEMBER( genmod_mapper_device::setgm_changed )
|
||||||
{
|
{
|
||||||
int number = (int)((uint64_t)param&0x03);
|
int number = (int)((uintptr_t)param&0x03);
|
||||||
int value = newval;
|
int value = newval;
|
||||||
|
|
||||||
switch (number)
|
switch (number)
|
||||||
|
Loading…
Reference in New Issue
Block a user