Previous 15994 Revisions Next

r15111 Monday 7th May, 2012 at 09:22:53 UTC by Miodrag Milanović
fixed ti99 regression (nw)
[src/mess/machine/ti99]handset.c

src/mess/machine/ti99/handset.c
r15110r15111
132132   int i;
133133
134134   /* read current key state */
135   key_buf = (ioport(keynames[num])->read() | (ioport(keynames[num + 1])->read() << 16) ) >> (4*num);
135   key_buf = (machine().root_device().ioport(keynames[num])->read() | (machine().root_device().ioport(keynames[num + 1])->read() << 16) ) >> (4*num);
136136
137137   // If a key was previously pressed, this key was not shift, and this key is
138138   // still down, then don't change the current key press.
r15110r15111
203203   int current_joy_x, current_joy_y;
204204   int message;
205205   /* read joystick position */
206   current_joy_x = ioport(joynames[0][num])->read();
207   current_joy_y = ioport(joynames[1][num])->read();
206   current_joy_x = machine().root_device().ioport(joynames[0][num])->read();
207   current_joy_y = machine().root_device().ioport(joynames[1][num])->read();
208208
209209   /* compare with last saved position */
210210   current_joy = current_joy_x | (current_joy_y << 4);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team