# Dx not being 1

**URL:** <https://forum.makecode.com/t/dx-not-being-1/35058>\
**Category:** Help\
**Created:** [March 31, 2025, 5:08pm UTC](https://forum.makecode.com/t/dx-not-being-1/35058 "2025-03-31T17:08:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stickman4269](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stickman4269/32/23582_2.png) [@Stickman4269](https://forum.makecode.com/u/Stickman4269)\
**Post date:** [March 31, 2025, 5:08pm UTC](https://forum.makecode.com/t/dx-not-being-1/35058/1 "2025-03-31T17:08:20Z")

</div>

When dx/dy are used, they equal 3,3.1 and 2.9 (and their negatives) randomly. Why do they change randomly and why do they not equal 1 when they have magnitude of 100? This seems very arbitrary and unintuitive

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [April 1, 2025, 5:44pm UTC](https://forum.makecode.com/t/dx-not-being-1/35058/2 "2025-04-01T17:44:16Z")

</div>

Is this about the Browser Events mouse Dx and Dy? It’s probably because it’s taking the raw input from your mouse, so it’s not perfect. I would just truncate the number and code something to ignore it if it’s less than, say, 5 or something. I don’t think it would be better for Makecode to fix that because it would be less precise.

---

<div class="post-metadata">

**Author:** ![Stickman4269](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stickman4269/32/23582_2.png) [@Stickman4269](https://forum.makecode.com/u/Stickman4269)\
**Post date:** [April 1, 2025, 10:28pm UTC](https://forum.makecode.com/t/dx-not-being-1/35058/3 "2025-04-01T22:28:52Z")

</div>

No. I’m talking about the dx and dy in the controller section which changes based on button presses
