trunk/src/osd/sdl/input.c
| r243326 | r243327 | |
| 1862 | 1862 | int cx, cy; |
| 1863 | 1863 | osd_ticks_t click = osd_ticks() * 1000 / osd_ticks_per_second(); |
| 1864 | 1864 | sdl_window_info *window = GET_FOCUS_WINDOW(&event.button); |
| 1865 | | if (window != NULL && window->xy_to_render_target(event.button.x,event.button.y, &cx, &cy) ) |
| 1865 | if (window != NULL && window->renderer().xy_to_render_target(event.button.x,event.button.y, &cx, &cy) ) |
| 1866 | 1866 | { |
| 1867 | 1867 | ui_input_push_mouse_down_event(machine, window->m_target, cx, cy); |
| 1868 | 1868 | // FIXME Parameter ? |
| r243326 | r243327 | |
| 1896 | 1896 | int cx, cy; |
| 1897 | 1897 | sdl_window_info *window = GET_FOCUS_WINDOW(&event.button); |
| 1898 | 1898 | |
| 1899 | | if (window != NULL && window->xy_to_render_target(event.button.x,event.button.y, &cx, &cy) ) |
| 1899 | if (window != NULL && window->renderer().xy_to_render_target(event.button.x,event.button.y, &cx, &cy) ) |
| 1900 | 1900 | { |
| 1901 | 1901 | ui_input_push_mouse_up_event(machine, window->m_target, cx, cy); |
| 1902 | 1902 | } |
| r243326 | r243327 | |
| 1921 | 1921 | int cx=-1, cy=-1; |
| 1922 | 1922 | sdl_window_info *window = GET_FOCUS_WINDOW(&event.motion); |
| 1923 | 1923 | |
| 1924 | | if (window != NULL && window->xy_to_render_target(event.motion.x, event.motion.y, &cx, &cy) ) |
| 1924 | if (window != NULL && window->renderer().xy_to_render_target(event.motion.x, event.motion.y, &cx, &cy) ) |
| 1925 | 1925 | ui_input_push_mouse_move_event(machine, window->m_target, cx, cy); |
| 1926 | 1926 | } |
| 1927 | 1927 | break; |