Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
namespace hiro {
|
2013-03-15 13:11:33 +00:00
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
static auto CalculateAlignment(Alignment alignment) -> signed {
|
|
|
|
signed result = 0;
|
|
|
|
if(alignment.horizontal() < 0.333) result |= Qt::AlignLeft;
|
|
|
|
else if(alignment.horizontal() > 0.666) result |= Qt::AlignRight;
|
|
|
|
else result |= Qt::AlignCenter;
|
|
|
|
if(alignment.vertical() < 0.333) result |= Qt::AlignTop;
|
|
|
|
else if(alignment.vertical() > 0.666) result |= Qt::AlignBottom;
|
|
|
|
else result |= Qt::AlignVCenter;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
static auto CreateBrush(Color color) -> QBrush {
|
|
|
|
return color ? QColor(color.red(), color.green(), color.blue()) : QBrush();
|
|
|
|
}
|
|
|
|
|
2018-07-16 06:16:26 +00:00
|
|
|
static auto CreateColor(Color color, QColor fallback = {}) -> QColor {
|
|
|
|
return color ? QColor(color.red(), color.green(), color.blue()) : fallback;
|
|
|
|
}
|
|
|
|
|
2016-01-07 08:14:33 +00:00
|
|
|
static auto CreateIcon(const image& icon, bool scale = false) -> QIcon {
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
if(!icon) return QIcon();
|
|
|
|
auto qtBuffer = icon;
|
|
|
|
qtBuffer.transform();
|
2012-06-18 10:13:51 +00:00
|
|
|
if(scale) qtBuffer.scale(16, 16, Interpolation::Linear);
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
QImage qtImage(qtBuffer.data(), qtBuffer.width(), qtBuffer.height(), QImage::Format_ARGB32);
|
2012-06-18 10:13:51 +00:00
|
|
|
return QIcon(QPixmap::fromImage(qtImage));
|
|
|
|
}
|
|
|
|
|
Update to 20180729 release.
byuu wrote:
Sigh ...
asio.hpp needs #include <nall/windows/registry.hpp>
[Since the last WIP, byuu also posted the following message. -Ed.]
ruby drivers have all been updated (but not tested outside of BSD), and
I redesigned the settings window. The driver functionality all exists on
a new "Drivers" panel, the emulator/hack settings go to a
"Configuration" panel, and the video/audio panels lose driver settings.
As does the settings menu and its synchronize options.
I want to start pushing toward a v107 release. Critically, I will need
DirectSound and ALSA to support dynamic rate control. I'd also like to
eliminate the other system manifest.bml files. I need to update the
cheat code database format, and bundle at least a few quark shaders --
although I still need to default to Direct3D on Windows.
Turbo keys would be nice, if it's not too much effort. Aside from
netplay, it's the last significant feature I'm missing.
I think for v107, higan is going to be a bit rough around the edges
compared to bsnes. And I don't think it's practical to finish the bsnes
localization support.
I'm thinking we probably want another WIP to iron out any critical
issues, but this time there should be a feature freeze with the next
WIP.
2018-07-29 13:24:38 +00:00
|
|
|
static auto DropPaths(QDropEvent* event) -> vector<string> {
|
2013-07-29 09:42:45 +00:00
|
|
|
QList<QUrl> urls = event->mimeData()->urls();
|
|
|
|
if(urls.size() == 0) return {};
|
|
|
|
|
Update to 20180729 release.
byuu wrote:
Sigh ...
asio.hpp needs #include <nall/windows/registry.hpp>
[Since the last WIP, byuu also posted the following message. -Ed.]
ruby drivers have all been updated (but not tested outside of BSD), and
I redesigned the settings window. The driver functionality all exists on
a new "Drivers" panel, the emulator/hack settings go to a
"Configuration" panel, and the video/audio panels lose driver settings.
As does the settings menu and its synchronize options.
I want to start pushing toward a v107 release. Critically, I will need
DirectSound and ALSA to support dynamic rate control. I'd also like to
eliminate the other system manifest.bml files. I need to update the
cheat code database format, and bundle at least a few quark shaders --
although I still need to default to Direct3D on Windows.
Turbo keys would be nice, if it's not too much effort. Aside from
netplay, it's the last significant feature I'm missing.
I think for v107, higan is going to be a bit rough around the edges
compared to bsnes. And I don't think it's practical to finish the bsnes
localization support.
I'm thinking we probably want another WIP to iron out any critical
issues, but this time there should be a feature freeze with the next
WIP.
2018-07-29 13:24:38 +00:00
|
|
|
vector<string> paths;
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
for(auto n : range(urls.size())) {
|
|
|
|
string path{urls[n].path().toUtf8().constData()};
|
|
|
|
if(!path) continue;
|
2013-12-03 10:01:59 +00:00
|
|
|
if(directory::exists(path) && !path.endsWith("/")) path.append("/");
|
2013-07-29 09:42:45 +00:00
|
|
|
paths.append(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
return paths;
|
|
|
|
}
|
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
/*
|
|
|
|
static auto GetDisplacement(Sizable* sizable) -> Position {
|
2013-11-28 10:32:53 +00:00
|
|
|
Position position;
|
|
|
|
while(sizable->state.parent) {
|
|
|
|
Position displacement = sizable->state.parent->p.displacement();
|
|
|
|
position.x += displacement.x;
|
|
|
|
position.y += displacement.y;
|
|
|
|
sizable = sizable->state.parent;
|
|
|
|
}
|
|
|
|
return position;
|
|
|
|
}
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
*/
|
2013-11-28 10:32:53 +00:00
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
/*
|
|
|
|
static auto GetParentWidgetLayout(Sizable* sizable) -> Layout* {
|
2013-11-28 10:32:53 +00:00
|
|
|
while(sizable) {
|
|
|
|
if(sizable->state.parent && dynamic_cast<TabFrame*>(sizable->state.parent)) return (Layout*)sizable;
|
|
|
|
sizable = sizable->state.parent;
|
|
|
|
}
|
|
|
|
return nullptr;
|
|
|
|
}
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
*/
|
2013-11-28 10:32:53 +00:00
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
/*
|
|
|
|
static auto GetParentWidget(Sizable* sizable) -> Widget* {
|
2013-11-28 10:32:53 +00:00
|
|
|
while(sizable) {
|
|
|
|
if(sizable->state.parent && dynamic_cast<TabFrame*>(sizable->state.parent)) return (Widget*)sizable->state.parent;
|
|
|
|
sizable = sizable->state.parent;
|
|
|
|
}
|
|
|
|
return nullptr;
|
|
|
|
}
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
*/
|
2013-11-28 10:32:53 +00:00
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
/*
|
|
|
|
static auto Keysym(int keysym) -> Keyboard::Keycode {
|
2012-01-15 08:29:57 +00:00
|
|
|
switch(keysym) {
|
|
|
|
case XK_Escape: return Keyboard::Keycode::Escape;
|
|
|
|
case XK_F1: return Keyboard::Keycode::F1;
|
|
|
|
case XK_F2: return Keyboard::Keycode::F2;
|
|
|
|
case XK_F3: return Keyboard::Keycode::F3;
|
|
|
|
case XK_F4: return Keyboard::Keycode::F4;
|
|
|
|
case XK_F5: return Keyboard::Keycode::F5;
|
|
|
|
case XK_F6: return Keyboard::Keycode::F6;
|
|
|
|
case XK_F7: return Keyboard::Keycode::F7;
|
|
|
|
case XK_F8: return Keyboard::Keycode::F8;
|
|
|
|
case XK_F9: return Keyboard::Keycode::F9;
|
|
|
|
case XK_F10: return Keyboard::Keycode::F10;
|
|
|
|
case XK_F11: return Keyboard::Keycode::F11;
|
|
|
|
case XK_F12: return Keyboard::Keycode::F12;
|
|
|
|
|
|
|
|
case XK_Print: return Keyboard::Keycode::PrintScreen;
|
|
|
|
//Keyboard::Keycode::SysRq
|
|
|
|
case XK_Scroll_Lock: return Keyboard::Keycode::ScrollLock;
|
|
|
|
case XK_Pause: return Keyboard::Keycode::Pause;
|
|
|
|
//Keyboard::Keycode::Break
|
|
|
|
|
|
|
|
case XK_Insert: return Keyboard::Keycode::Insert;
|
|
|
|
case XK_Delete: return Keyboard::Keycode::Delete;
|
|
|
|
case XK_Home: return Keyboard::Keycode::Home;
|
|
|
|
case XK_End: return Keyboard::Keycode::End;
|
|
|
|
case XK_Prior: return Keyboard::Keycode::PageUp;
|
|
|
|
case XK_Next: return Keyboard::Keycode::PageDown;
|
|
|
|
|
|
|
|
case XK_Up: return Keyboard::Keycode::Up;
|
|
|
|
case XK_Down: return Keyboard::Keycode::Down;
|
|
|
|
case XK_Left: return Keyboard::Keycode::Left;
|
|
|
|
case XK_Right: return Keyboard::Keycode::Right;
|
|
|
|
|
|
|
|
case XK_grave: return Keyboard::Keycode::Grave;
|
|
|
|
case XK_1: return Keyboard::Keycode::Number1;
|
|
|
|
case XK_2: return Keyboard::Keycode::Number2;
|
|
|
|
case XK_3: return Keyboard::Keycode::Number3;
|
|
|
|
case XK_4: return Keyboard::Keycode::Number4;
|
|
|
|
case XK_5: return Keyboard::Keycode::Number5;
|
|
|
|
case XK_6: return Keyboard::Keycode::Number6;
|
|
|
|
case XK_7: return Keyboard::Keycode::Number7;
|
|
|
|
case XK_8: return Keyboard::Keycode::Number8;
|
|
|
|
case XK_9: return Keyboard::Keycode::Number9;
|
|
|
|
case XK_0: return Keyboard::Keycode::Number0;
|
|
|
|
case XK_minus: return Keyboard::Keycode::Minus;
|
|
|
|
case XK_equal: return Keyboard::Keycode::Equal;
|
|
|
|
case XK_BackSpace: return Keyboard::Keycode::Backspace;
|
|
|
|
|
|
|
|
case XK_asciitilde: return Keyboard::Keycode::Tilde;
|
|
|
|
case XK_exclam: return Keyboard::Keycode::Exclamation;
|
|
|
|
case XK_at: return Keyboard::Keycode::At;
|
|
|
|
case XK_numbersign: return Keyboard::Keycode::Pound;
|
|
|
|
case XK_dollar: return Keyboard::Keycode::Dollar;
|
|
|
|
case XK_percent: return Keyboard::Keycode::Percent;
|
|
|
|
case XK_asciicircum: return Keyboard::Keycode::Power;
|
|
|
|
case XK_ampersand: return Keyboard::Keycode::Ampersand;
|
|
|
|
case XK_asterisk: return Keyboard::Keycode::Asterisk;
|
|
|
|
case XK_parenleft: return Keyboard::Keycode::ParenthesisLeft;
|
|
|
|
case XK_parenright: return Keyboard::Keycode::ParenthesisRight;
|
|
|
|
case XK_underscore: return Keyboard::Keycode::Underscore;
|
|
|
|
case XK_plus: return Keyboard::Keycode::Plus;
|
|
|
|
|
|
|
|
case XK_bracketleft: return Keyboard::Keycode::BracketLeft;
|
|
|
|
case XK_bracketright: return Keyboard::Keycode::BracketRight;
|
|
|
|
case XK_backslash: return Keyboard::Keycode::Backslash;
|
|
|
|
case XK_semicolon: return Keyboard::Keycode::Semicolon;
|
|
|
|
case XK_apostrophe: return Keyboard::Keycode::Apostrophe;
|
|
|
|
case XK_comma: return Keyboard::Keycode::Comma;
|
|
|
|
case XK_period: return Keyboard::Keycode::Period;
|
|
|
|
case XK_slash: return Keyboard::Keycode::Slash;
|
|
|
|
|
|
|
|
case XK_braceleft: return Keyboard::Keycode::BraceLeft;
|
|
|
|
case XK_braceright: return Keyboard::Keycode::BraceRight;
|
|
|
|
case XK_bar: return Keyboard::Keycode::Pipe;
|
|
|
|
case XK_colon: return Keyboard::Keycode::Colon;
|
|
|
|
case XK_quotedbl: return Keyboard::Keycode::Quote;
|
|
|
|
case XK_less: return Keyboard::Keycode::CaretLeft;
|
|
|
|
case XK_greater: return Keyboard::Keycode::CaretRight;
|
|
|
|
case XK_question: return Keyboard::Keycode::Question;
|
|
|
|
|
|
|
|
case XK_Tab: return Keyboard::Keycode::Tab;
|
|
|
|
case XK_Caps_Lock: return Keyboard::Keycode::CapsLock;
|
|
|
|
case XK_Return: return Keyboard::Keycode::Return;
|
|
|
|
case XK_Shift_L: return Keyboard::Keycode::ShiftLeft;
|
|
|
|
case XK_Shift_R: return Keyboard::Keycode::ShiftRight;
|
|
|
|
case XK_Control_L: return Keyboard::Keycode::ControlLeft;
|
|
|
|
case XK_Control_R: return Keyboard::Keycode::ControlRight;
|
|
|
|
case XK_Super_L: return Keyboard::Keycode::SuperLeft;
|
|
|
|
case XK_Super_R: return Keyboard::Keycode::SuperRight;
|
|
|
|
case XK_Alt_L: return Keyboard::Keycode::AltLeft;
|
|
|
|
case XK_Alt_R: return Keyboard::Keycode::AltRight;
|
|
|
|
case XK_space: return Keyboard::Keycode::Space;
|
|
|
|
case XK_Menu: return Keyboard::Keycode::Menu;
|
|
|
|
|
|
|
|
case XK_A: return Keyboard::Keycode::A;
|
|
|
|
case XK_B: return Keyboard::Keycode::B;
|
|
|
|
case XK_C: return Keyboard::Keycode::C;
|
|
|
|
case XK_D: return Keyboard::Keycode::D;
|
|
|
|
case XK_E: return Keyboard::Keycode::E;
|
|
|
|
case XK_F: return Keyboard::Keycode::F;
|
|
|
|
case XK_G: return Keyboard::Keycode::G;
|
|
|
|
case XK_H: return Keyboard::Keycode::H;
|
|
|
|
case XK_I: return Keyboard::Keycode::I;
|
|
|
|
case XK_J: return Keyboard::Keycode::J;
|
|
|
|
case XK_K: return Keyboard::Keycode::K;
|
|
|
|
case XK_L: return Keyboard::Keycode::L;
|
|
|
|
case XK_M: return Keyboard::Keycode::M;
|
|
|
|
case XK_N: return Keyboard::Keycode::N;
|
|
|
|
case XK_O: return Keyboard::Keycode::O;
|
|
|
|
case XK_P: return Keyboard::Keycode::P;
|
|
|
|
case XK_Q: return Keyboard::Keycode::Q;
|
|
|
|
case XK_R: return Keyboard::Keycode::R;
|
|
|
|
case XK_S: return Keyboard::Keycode::S;
|
|
|
|
case XK_T: return Keyboard::Keycode::T;
|
|
|
|
case XK_U: return Keyboard::Keycode::U;
|
|
|
|
case XK_V: return Keyboard::Keycode::V;
|
|
|
|
case XK_W: return Keyboard::Keycode::W;
|
|
|
|
case XK_X: return Keyboard::Keycode::X;
|
|
|
|
case XK_Y: return Keyboard::Keycode::Y;
|
|
|
|
case XK_Z: return Keyboard::Keycode::Z;
|
|
|
|
|
|
|
|
case XK_a: return Keyboard::Keycode::a;
|
|
|
|
case XK_b: return Keyboard::Keycode::b;
|
|
|
|
case XK_c: return Keyboard::Keycode::c;
|
|
|
|
case XK_d: return Keyboard::Keycode::d;
|
|
|
|
case XK_e: return Keyboard::Keycode::e;
|
|
|
|
case XK_f: return Keyboard::Keycode::f;
|
|
|
|
case XK_g: return Keyboard::Keycode::g;
|
|
|
|
case XK_h: return Keyboard::Keycode::h;
|
|
|
|
case XK_i: return Keyboard::Keycode::i;
|
|
|
|
case XK_j: return Keyboard::Keycode::j;
|
|
|
|
case XK_k: return Keyboard::Keycode::k;
|
|
|
|
case XK_l: return Keyboard::Keycode::l;
|
|
|
|
case XK_m: return Keyboard::Keycode::m;
|
|
|
|
case XK_n: return Keyboard::Keycode::n;
|
|
|
|
case XK_o: return Keyboard::Keycode::o;
|
|
|
|
case XK_p: return Keyboard::Keycode::p;
|
|
|
|
case XK_q: return Keyboard::Keycode::q;
|
|
|
|
case XK_r: return Keyboard::Keycode::r;
|
|
|
|
case XK_s: return Keyboard::Keycode::s;
|
|
|
|
case XK_t: return Keyboard::Keycode::t;
|
|
|
|
case XK_u: return Keyboard::Keycode::u;
|
|
|
|
case XK_v: return Keyboard::Keycode::v;
|
|
|
|
case XK_w: return Keyboard::Keycode::w;
|
|
|
|
case XK_x: return Keyboard::Keycode::x;
|
|
|
|
case XK_y: return Keyboard::Keycode::y;
|
|
|
|
case XK_z: return Keyboard::Keycode::z;
|
|
|
|
|
|
|
|
case XK_Num_Lock: return Keyboard::Keycode::NumLock;
|
|
|
|
case XK_KP_Divide: return Keyboard::Keycode::Divide;
|
|
|
|
case XK_KP_Multiply: return Keyboard::Keycode::Multiply;
|
|
|
|
case XK_KP_Subtract: return Keyboard::Keycode::Subtract;
|
|
|
|
case XK_KP_Add: return Keyboard::Keycode::Add;
|
|
|
|
case XK_KP_Enter: return Keyboard::Keycode::Enter;
|
|
|
|
case XK_KP_Decimal: return Keyboard::Keycode::Point;
|
|
|
|
|
|
|
|
case XK_KP_1: return Keyboard::Keycode::Keypad1;
|
|
|
|
case XK_KP_2: return Keyboard::Keycode::Keypad2;
|
|
|
|
case XK_KP_3: return Keyboard::Keycode::Keypad3;
|
|
|
|
case XK_KP_4: return Keyboard::Keycode::Keypad4;
|
|
|
|
case XK_KP_5: return Keyboard::Keycode::Keypad5;
|
|
|
|
case XK_KP_6: return Keyboard::Keycode::Keypad6;
|
|
|
|
case XK_KP_7: return Keyboard::Keycode::Keypad7;
|
|
|
|
case XK_KP_8: return Keyboard::Keycode::Keypad8;
|
|
|
|
case XK_KP_9: return Keyboard::Keycode::Keypad9;
|
|
|
|
case XK_KP_0: return Keyboard::Keycode::Keypad0;
|
|
|
|
|
|
|
|
case XK_KP_Home: return Keyboard::Keycode::KeypadHome;
|
|
|
|
case XK_KP_End: return Keyboard::Keycode::KeypadEnd;
|
|
|
|
case XK_KP_Page_Up: return Keyboard::Keycode::KeypadPageUp;
|
|
|
|
case XK_KP_Page_Down: return Keyboard::Keycode::KeypadPageDown;
|
|
|
|
case XK_KP_Up: return Keyboard::Keycode::KeypadUp;
|
|
|
|
case XK_KP_Down: return Keyboard::Keycode::KeypadDown;
|
|
|
|
case XK_KP_Left: return Keyboard::Keycode::KeypadLeft;
|
|
|
|
case XK_KP_Right: return Keyboard::Keycode::KeypadRight;
|
|
|
|
case XK_KP_Begin: return Keyboard::Keycode::KeypadCenter;
|
|
|
|
case XK_KP_Insert: return Keyboard::Keycode::KeypadInsert;
|
|
|
|
case XK_KP_Delete: return Keyboard::Keycode::KeypadDelete;
|
|
|
|
}
|
|
|
|
return Keyboard::Keycode::None;
|
|
|
|
}
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
*/
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
}
|