OSDN Git Service
(root)
/
motonesemu
/
motonesemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c069fc
)
joypad read func bug fixed
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Thu, 25 Apr 2013 04:12:11 +0000
(13:12 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Thu, 25 Apr 2013 04:12:11 +0000
(13:12 +0900)
emulator/joypad.c
patch
|
blob
|
history
diff --git
a/emulator/joypad.c
b/emulator/joypad.c
index
b0e9be4
..
f3cb0d5
100644
(file)
--- a/
emulator/joypad.c
+++ b/
emulator/joypad.c
@@
-47,7
+47,7
@@
void set_joypad_data(unsigned char data) {
unsigned char get_joypad_data(void) {
unsigned char data;
jp_reg.r.button_data = get_button(jp_reg.read_cnt++);
- memcpy(&data, &jp_reg.
w
, sizeof(unsigned char));
+ memcpy(&data, &jp_reg.
r
, sizeof(unsigned char));
//dprint("get joypad data(%d) %d\n", jp_reg.read_cnt, data);
return data;
}