bsnes-libretro/hiro/extension
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
..
browser-dialog.cpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00
browser-dialog.hpp Update to v102r06 release. 2017-02-11 10:56:42 +11:00
extension.cpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
extension.hpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
fixed-layout.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
fixed-layout.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
horizontal-layout.cpp Update to v098r08 release. 2016-05-02 19:57:04 +10:00
horizontal-layout.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
list-view-item.cpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
list-view-item.hpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
list-view.cpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
list-view.hpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
message-dialog.cpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00
message-dialog.hpp Update to v099r15 release. 2016-07-04 21:48:17 +10:00
shared.hpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
vertical-layout.cpp Update to v098r08 release. 2016-05-02 19:57:04 +10:00
vertical-layout.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00