# Mouse wrap around monitor / extend cycle of mouse around screen

**URL:** <https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563>\
**Category:** Coding Questions\
**Created:** [March 10, 2020, 3:00pm UTC](https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563 "2020-03-10T15:00:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZvivZ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/zvivz/32/8176_2.png) [@ZvivZ](https://discourse.processing.org/u/ZvivZ)\
**Post date:** [March 10, 2020, 3:00pm UTC](https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563/1 "2020-03-10T15:00:07Z")

</div>

Is there a way in Processing to make the mouse cycle around the screen and keep giving mouseX/mouseY positions? This would be for games that use a trackball or spinner.

I’m able to use a third party program (CursorUS) to make the mouse wrap but then have to write code in Processing to increment or decrement the positions based on the direction of mouse wrap.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [March 11, 2020, 6:26am UTC](https://discourse.processing.org/t/mouse-wrap-around-monitor-extend-cycle-of-mouse-around-screen/18563/2 "2020-03-11T06:26:41Z")

</div>

Look at robot- a library - here in the forum
