Modules/cellGem: Implement pos, quat and handle_pos in Gemstate for mouse.

Modules/cellGem: Fix name for gem_image_state.
Modules/cellGem: Implement projectiion(x/y) in gem_image_State for mouse.
Modules/cellGem: Add cross, triangle, circle and start with use middle click for mouse.
Modules/cellGem: Refactor global code.
Modules/cellGem: fix some warning with initializing value.
This commit is contained in:
Zangetsu38 2018-07-23 19:57:40 +02:00 committed by Megamouse
parent ac2b0c9752
commit af8ebc76e2
5 changed files with 179 additions and 121 deletions

View file

@ -100,7 +100,15 @@ EmuCallbacks main_application::CreateCallbacks()
{
case mouse_handler::null:
{
g_fxo->init<MouseHandlerBase, NullMouseHandler>();
if (g_cfg.io.move == move_handler::mouse)
{
basic_mouse_handler* ret = g_fxo->init<MouseHandlerBase, basic_mouse_handler>();
ret->moveToThread(get_thread());
ret->SetTargetWindow(m_game_window);
}
else
g_fxo->init<MouseHandlerBase, NullMouseHandler>();
break;
}
case mouse_handler::basic: