# controlP5 slider + PeasyCam issue

**URL:** https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199
**Category:** Libraries
**Created:** [December 18, 2022, 3:57pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199 "2022-12-18T15:57:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hallow255win](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@hallow255win](https://discourse.processing.org/u/hallow255win)
#### Post date: [December 18, 2022, 3:57pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199/1 "2022-12-18T15:57:28Z")

</div>

When I’m using ControlP5 slider I need the mouse to drag the slider left and right, but this action also triggers the camera to rotate in PeasyCam.

Is there any way to use the slider without rotating the camera?

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [December 18, 2022, 5:51pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199/3 "2022-12-18T17:51:00Z")

</div>

Hi

You can use keyboard to rotate PeasyCam google for examples

---

<div class="post-metadata">

### Author: ![hallow255win](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@hallow255win](https://discourse.processing.org/u/hallow255win)
#### Post date: [December 22, 2022, 9:07pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199/5 "2022-12-22T21:07:53Z")

</div>

Thank you! I’ve setup a keyPressed event to toggle between rotate with mouse/keyboard.
