# Request for Exposing Internal Functions of Camera Inputs as Protected Fields for Extendability

**URL:** <https://forum.babylonjs.com/t/request-for-exposing-internal-functions-of-camera-inputs-as-protected-fields-for-extendability/41737>\
**Category:** Feature requests\
**Tags:** input, camera, offscreencanvas\
**Created:** [June 19, 2023, 8:29pm UTC](https://forum.babylonjs.com/t/request-for-exposing-internal-functions-of-camera-inputs-as-protected-fields-for-extendability/41737 "2023-06-19T20:29:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cryi/32/33031_2.png) [@cryi](https://forum.babylonjs.com/u/cryi)\
**Post date:** [June 19, 2023, 8:29pm UTC](https://forum.babylonjs.com/t/request-for-exposing-internal-functions-of-camera-inputs-as-protected-fields-for-extendability/41737/1 "2023-06-19T20:29:04Z")

</div>

Dear Babylon.js team,

I’m currently trying to build out functionality that requires more control and manipulation of camera inputs. In particular, I’ve found that being able to extend and customize the way inputs like `_pointerInput` in `FreeCameraMouseInput` and `_keys` in `FreeCameraKeyboardMoveInput` work would be useful. However, these are currently marked as private fields, preventing us from accessing them in extended classes.

For example I would like to:

- **Expose `_pointerInput` in `FreeCameraMouseInput` as a protected field**
- **Expose `_keys` in `FreeCameraKeyboardMoveInput` as a protected field**
- similar stuff for all camera input classes

The use case for these changes is particularly relevant for scenarios like offscreen worker, where we need to reuse the entire logic but provide a custom source of events. By exposing these methods as protected, we would avoid bunch of `ts-ignore`s we use right now.

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [June 19, 2023, 10:53pm UTC](https://forum.babylonjs.com/t/request-for-exposing-internal-functions-of-camera-inputs-as-protected-fields-for-extendability/41737/2 "2023-06-19T22:53:33Z")

</div>

Hello, and welcome to the Babylon forum!

@PolygonalSun may be able to help with this.
