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: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19void 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;
}
}19 lines; 9 keywds; 0 nums; 50 ops; 0 strs; 4 coms Syntactic Coloring v0.4 - Dan East
- Code: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27void 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;
}
}27 lines; 33 keywds; 0 nums; 116 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East
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.
