# Deactive some Camera inputs

**URL:** <https://forum.babylonjs.com/t/deactive-some-camera-inputs/33044>\
**Category:** Questions\
**Created:** [August 14, 2022, 4:56pm UTC](https://forum.babylonjs.com/t/deactive-some-camera-inputs/33044 "2022-08-14T16:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [August 14, 2022, 4:56pm UTC](https://forum.babylonjs.com/t/deactive-some-camera-inputs/33044/1 "2022-08-14T16:56:14Z")

</div>

Hi, I’m trying to play, testing with the preset camera “ArcRotateCamera”. But now I’m solving how to disable inputs from the keyboard and input from the right mouse button. So, I was trying to use this code:

```
         camera.inputs.clear();
         camera.inputs.addMouseWheel();

```

Most of work is ok, for example keyboard is disabled. The problem is that I was looking for a function to add the left mouse button, so something like “addLeftMuseButton()” but there is no such method. So how to solve the problem and disable the right mouse button. In short, I need: the user to click the right mouse button and nothing happens.

I used the help text here:

> **[Customizing Camera Inputs | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/cameras/customizingCameraInputs)**
>
> Learn how to customize input controls for Babylon.js cameras.

Thanks for your time, your response.

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [August 14, 2022, 5:25pm UTC](https://forum.babylonjs.com/t/deactive-some-camera-inputs/33044/2 "2022-08-14T17:25:25Z")

</div>

Hey there, the pointer input class has a property called buttons that controls which buttons are enabled. By default it’s set to [0, 1, 2]. You can remove the 2 like below to disable right click input. 🙂

> **[Babylon.js Playground](https://playground.babylonjs.com/#96J37Q)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes
