Skip to content

Commit

Permalink
Rename ui::jmouse_poll to ui::_internal_poll_mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Aug 9, 2014
1 parent b1b4ed8 commit a6933b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ bool Manager::generateMessages()
void Manager::generateMouseMessages()
{
// Update mouse status
bool mousemove = jmouse_poll();
bool mousemove = _internal_poll_mouse();

gfx::Point mousePos(gfx::Point(jmouse_x(0), jmouse_y(0)));

Expand Down
4 changes: 2 additions & 2 deletions src/ui/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int _ji_system_init()
return -1;

if (screen)
jmouse_poll();
_internal_poll_mouse();

moved = true;
mouse_cursor_type = kNoCursor;
Expand Down Expand Up @@ -228,7 +228,7 @@ static gfx::Point allegro_mouse_point()
*
* @return Returns true if the mouse moved.
*/
bool jmouse_poll()
bool _internal_poll_mouse()
{
m_b[1] = m_b[0];
m_x[1] = m_x[0];
Expand Down
2 changes: 1 addition & 1 deletion src/ui/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace ui {
bool jmouse_is_hidden();
bool jmouse_is_shown();

bool jmouse_poll();
bool _internal_poll_mouse();

void _internal_no_mouse_position();
void _internal_set_mouse_position(const gfx::Point& newPos);
Expand Down

0 comments on commit a6933b2

Please sign in to comment.