bsnes/hiro/gtk
Tim Allen ed5ec58595 Update to v103r13 release.
byuu says:

Changelog:

  - gb/interface: fix Game Boy Color extension to be "gbc" and not "gb"
    [hex\_usr]
  - ms/interface: move Master System hardware controls below controller
    ports
  - sfc/ppu: improve latching behavior of BGnHOFS registers (not
    hardware verified) [AWJ]
  - tomoko/input: rework port/device mapping to support non-sequential
    ports and devices¹
      - todo: should add move() to inputDevice.mappings.append and
        inputPort.devices.append
      - note: there's a weird GCC 4.9 bug with brace initialization of
        InputEmulator; have to assign each field separately
  - tomoko: all windows sans the main presentation window can be
    dismissed with the escape key
  - icarus: the single file selection dialog ("Load ROM Image...") can
    be dismissed with the escape key
  - tomoko: do not pause emulation when FocusLoss/Pause is set during
    exclusive fullscreen mode
  - hiro/(windows,gtk,qt): implemented Window::setDismissable() function
    (missing from cocoa port, sorry)
  - nall/string: fixed printing of largest possible negative numbers (eg
    `INT_MIN`) [Sintendo]
      - only took eight months! :D

¹: When I tried to move the Master System hardware port below the
controller ports, I ran into a world of pain.

The input settings list expects every item in the
`InputEmulator<InputPort<InputDevice<InputMapping>>>>` arrays to be
populated with valid results. But these would be sparsely populated
based on the port and device IDs from inside higan. And that is done so
that the Interface::inputPoll can have O(1) lookup of ports and devices.
This worked because all the port and device IDs were sequential (they
left no gaps in the maps upon creating the lists.)

Unfortunately by changing the expectation of port ID to how it appears
in the list, inputs would not poll correctly. By leaving them alone and
just moving Hardware to the third position, the Game Gear would be
missing port IDs of 0 and 1 (the controller ports of the Master System).
Even by trying to make separate MasterSystemHardware and
GameGearHardware ports, things still fractured when the devices were no
longer contigious.

I got pretty sick of this and just decided to give up on O(1)
port/device lookup, and moved to O(n) lookup. It only knocked the
framerate down by maybe one frame per second, enough to be in the margin
of error. Inputs aren't polled *that* often for loops that usually
terminate after 1-2 cycles to be too detrimental to performance.

So the new input system now allows non-sequential port and device IDs.

Remember that I killed input IDs a while back. There's never any reason
for those to need IDs ... it was easier to just order the inputs in the
order you want to see them in the user interface. So the input lookup is
still O(1). Only now, everything's safer and I return a
maybe<InputMapping&>, and won't crash out the program trying to use a
mapping that isn't found for some reason.

Errata: the escape key isn't working on the browser/message dialogs on
Windows, because of course nothing can ever just be easy and work for
me. If anyone else wouldn't mind looking into that, I'd greatly
appreciate it.

Having the `WM_KEYDOWN` test inside the main `Application_sharedProc`, it
seems to not respond to the escape key on modal dialogs. If I put the
`WM_KEYDOWN` test in the main window proc, then it doesn't seem to get
called for `VK_ESCAPE` at all, and doesn't get called period for modal
windows. So I'm at a loss and it's past 4AM here >_>
2017-07-12 18:24:27 +10:00
..
action Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
widget Update to v101r06 release. 2016-08-15 14:52:05 +10:00
application.cpp Update to v100r16 release. 2016-08-03 22:32:40 +10:00
application.hpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
browser-window.cpp Update to v099r15 release. 2016-07-04 21:48:17 +10:00
browser-window.hpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
desktop.cpp Update to v101r20 release. 2016-10-29 11:33:30 +11:00
desktop.hpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
font.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
font.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
group.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
group.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
header.hpp Update to v097r19 release. 2016-03-13 11:22:14 +11:00
keyboard.cpp Update to v100r16 release. 2016-08-03 22:32:40 +10:00
keyboard.hpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
layout.cpp Update to v095r03 release and icarus 20151107. 2015-11-10 22:11:29 +11:00
layout.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
menu-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
menu-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
message-window.cpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
message-window.hpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
monitor.cpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
monitor.hpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
mouse.cpp Update to v094r29 release. 2015-06-22 23:31:49 +10:00
mouse.hpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
object.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
object.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
platform.cpp Update to v098r10 release. 2016-05-16 19:51:12 +10:00
platform.hpp Update to v098r10 release. 2016-05-16 19:51:12 +10:00
popup-menu.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
popup-menu.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
settings.cpp Update to v100r16 release. 2016-08-03 22:32:40 +10:00
settings.hpp Update to v100r16 release. 2016-08-03 22:32:40 +10:00
sizable.cpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
sizable.hpp Update to v094r20 release. 2015-05-23 15:37:08 +10:00
status-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
status-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
timer.cpp Update to v096r01 release. 2015-12-30 17:54:59 +11:00
timer.hpp Update to v096r03 release. 2016-01-08 20:23:46 +11:00
utility.cpp Update to v099r15 release. 2016-07-04 21:48:17 +10:00
window.cpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00
window.hpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00