示例#1
0
 // poll which updates the controller state
 private void snes_input_poll()
 {
     _controllers.CoreInputPoll(_controller);
 }
示例#2
0
 /// <param name="port">0 or 1, corresponding to L and R physical ports on the snes</param>
 /// <param name="index">meaningless for most controllers.  for multitap, 0-3 for which multitap controller</param>
 /// <param name="id">button ID enum; in the case of a regular controller, this corresponds to shift register position</param>
 /// <returns>for regular controllers, one bit D0 of button status.  for other controls, varying ranges depending on id</returns>
 private short snes_input_poll(int port, int index, int id)
 {
     return(_controllers.CoreInputPoll(_controller, port, index, id));
 }