mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-27 04:31:41 +00:00
Simplify the SCons build:
On OS X, build all code as Objective-C(++). Centralize framework handling. Cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5645 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
de45e015cd
commit
404c625622
26 changed files with 110 additions and 253 deletions
|
@ -102,11 +102,11 @@ bool EventHandler::TestEvent (Keys k, sf::Event e)
|
|||
|
||||
#if defined HAVE_WX && HAVE_WX
|
||||
// Taken from wxw source code
|
||||
sf::Key::Code EventHandler::wxCharCodeToSF(int id)
|
||||
sf::Key::Code EventHandler::wxCharCodeToSF(int charcode)
|
||||
{
|
||||
sf::Key::Code sfKey;
|
||||
|
||||
switch (id) {
|
||||
switch (charcode) {
|
||||
// case WXK_CANCEL: sfKey = sf::Key::Cancel; break;
|
||||
// case WXK_BACK: sfKey = sf::Key::BackSpace; break;
|
||||
case WXK_TAB: sfKey = sf::Key::Tab; break;
|
||||
|
@ -181,12 +181,12 @@ sf::Key::Code EventHandler::wxCharCodeToSF(int id)
|
|||
default:
|
||||
|
||||
// To lower (will tolower work on windows?)
|
||||
if (id >= 'A' && id <= 'Z')
|
||||
id = id - 'A' + 'a';
|
||||
if (charcode >= 'A' && charcode <= 'Z')
|
||||
charcode = charcode - 'A' + 'a';
|
||||
|
||||
if ((id >= 'a' && id <= 'z') ||
|
||||
(id >= '0' && id <= '9'))
|
||||
sfKey = (sf::Key::Code)id;
|
||||
if ((charcode >= 'a' && charcode <= 'z') ||
|
||||
(charcode >= '0' && charcode <= '9'))
|
||||
sfKey = (sf::Key::Code)charcode;
|
||||
else
|
||||
sfKey = sf::Key::Count; // Invalid key
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue