the pos_x and pos_y variables were somewhat deceptive, because they were not actually the poition of the cursor. They represented the position of the cursor's bitmap on the screen, not the position of the cursor.