Hi Thierry,
i saw you released a new pockethal version; that's always cool news
I'm using new pockethal 1.0.4 on latest pocketfrog, available from site and i saw you fixed several orientation issues.
Now I wonder what we have to do with pocketfrog functions which deal with input remapping..
I mean, there's two remapping function inside latest pocketfrog (game.cpp) (please ignore if they're slightly different from original, because there is a small patch of mine...)
Does new pockethal 1.0.4 handle remapping by itself, so we should comment these two functions? Or should be left untouched?
Thanks in advance for your time!!
Regards.
i saw you released a new pockethal version; that's always cool news
I'm using new pockethal 1.0.4 on latest pocketfrog, available from site and i saw you fixed several orientation issues.
Now I wonder what we have to do with pocketfrog functions which deal with input remapping..
I mean, there's two remapping function inside latest pocketfrog (game.cpp) (please ignore if they're slightly different from original, because there is a small patch of mine...)
- Code:
void Game::DeviceToLogical( Point& P ) const
{
switch (m_config.orientation)
{
case ORIENTATION_ROTATE90CCW:
swap( P.x, P.y );
P.x = SystemScreenWidthMin1 /*319*/ - P.x;
break;
case ORIENTATION_ROTATE90CW:
swap( P.x, P.y );
P.y = SystemScreenHeightMin1 /*239*/ - P.y;
break;
case ORIENTATION_ROTATE180:
P.x = SystemScreenHeightMin1 /*239*/ - P.x;
P.y = SystemScreenWidthMin1 /*319*/ - P.y;
break;
}
}
- Code:
void Game::DeviceToLogical( int& button ) const
{
#if defined(_WIN32_WCE)
switch (m_config.orientation)
{
case ORIENTATION_ROTATE90CCW:
if (button == m_keys.vkUp) button = m_keys.vkRight;
else if (button == m_keys.vkLeft) button = m_keys.vkUp;
else if (button == m_keys.vkDown) button = m_keys.vkLeft;
else if (button == m_keys.vkRight) button = m_keys.vkDown;
break;
case ORIENTATION_ROTATE90CW:
if (button == m_keys.vkUp) button = m_keys.vkLeft;
else if (button == m_keys.vkLeft) button = m_keys.vkDown;
else if (button == m_keys.vkDown) button = m_keys.vkRight;
else if (button == m_keys.vkRight) button = m_keys.vkUp;
break;
case ORIENTATION_ROTATE180:
if (button == m_keys.vkUp) button = m_keys.vkDown;
else if (button == m_keys.vkLeft) button = m_keys.vkRight;
else if (button == m_keys.vkDown) button = m_keys.vkUp;
else if (button == m_keys.vkRight) button = m_keys.vkLeft;
break;
}
}
Does new pockethal 1.0.4 handle remapping by itself, so we should comment these two functions? Or should be left untouched?
Thanks in advance for your time!!
Regards.