mirror of
https://github.com/mlaux/gb6.git
synced 2025-01-20 13:33:55 +00:00
fix button state for pokemon
This commit is contained in:
parent
ead7a3e17c
commit
bad415fa23
@ -34,8 +34,8 @@ add_executable(gb6
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(gb6
|
target_link_libraries(gb6
|
||||||
"-framework OpenGL"
|
"-lGL"
|
||||||
"-framework CoreFoundation"
|
"-ldl"
|
||||||
"${SDL_LIBS}"
|
"${SDL_LIBS}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -976,7 +976,7 @@ void cpu_step(struct cpu *cpu)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x76: // HALT
|
case 0x76: // HALT
|
||||||
cpu->halted = 1;
|
//cpu->halted = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0xc1: // POP BC
|
case 0xc1: // POP BC
|
||||||
|
@ -40,7 +40,7 @@ void dmg_set_button(struct dmg *dmg, int field, int button, int pressed)
|
|||||||
|
|
||||||
static u8 get_button_state(struct dmg *dmg)
|
static u8 get_button_state(struct dmg *dmg)
|
||||||
{
|
{
|
||||||
u8 ret = 0;
|
u8 ret = 0xf0;
|
||||||
if (dmg->action_selected) {
|
if (dmg->action_selected) {
|
||||||
ret |= dmg->action_buttons;
|
ret |= dmg->action_buttons;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user