# Controlling Proscene's camera with OSCP5 controls

**URL:** <https://discourse.processing.org/t/controlling-proscenes-camera-with-oscp5-controls/12114>\
**Category:** Libraries\
**Created:** [June 17, 2019, 9:25am UTC](https://discourse.processing.org/t/controlling-proscenes-camera-with-oscp5-controls/12114 "2019-06-17T09:25:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisFerreira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/luisferreira/32/9493_2.png) [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Post date:** [June 17, 2019, 9:25am UTC](https://discourse.processing.org/t/controlling-proscenes-camera-with-oscp5-controls/12114/1 "2019-06-17T09:25:54Z")

</div>

Hello, i recently started using the [Proscene](https://github.com/remixlab/proscene) library in my sketches, and now i want to have control over the camera without using the mouse.

I am also using the [OSCP5](http://www.sojamo.de/libraries/oscP5/) library, and i want to use a XY Pad to control the camera, instead of the mouse.

I tried to do some research, and i think creating a class that extends the MouseAgent (or the base agent) seems to be a good idea, since this is how the information from the Mouse is processed inside Proscene. But this is my only clue, since i can’t find examples, i am not sure how to make this work.

From OSC i receive {x, y} values with range [0, 1].

Can someone give me a clue how to use these values to control the camera, in the same way as the mouse does?
