# Can someone make a mouse extension?

**URL:** <https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332>\
**Category:** Arcade\
**Tags:** extension\
**Created:** [January 10, 2023, 12:56am UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332 "2023-01-10T00:56:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CreeperCoder](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@CreeperCoder](https://forum.makecode.com/u/CreeperCoder)\
**Post date:** [January 10, 2023, 12:56am UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/1 "2023-01-10T00:56:48Z")

</div>

it will have mouse x and y mouse columns and rows it will have a on mouse overlaps sprite and a on sprite clicked if you want

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [January 10, 2023, 6:04pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/2 "2023-01-10T18:04:12Z")

</div>

I don’t think thats possible with makecode as its designed to run on physical devices that don’t have mice attached to them : (

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [January 10, 2023, 6:04pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/3 "2023-01-10T18:04:50Z")

</div>

It is currently not possible for the simulator to know the mouse position. Plus, how to handle touchscreens, and when there are more than two touches happening simultaneously?

---

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [January 10, 2023, 6:11pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/4 "2023-01-10T18:11:23Z")

</div>

Maybe if we customize jacdac? Awkward programming and getting it to simulate, but possibly possible.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 10, 2023, 6:13pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/5 "2023-01-10T18:13:26Z")

</div>

this might be coming in the future 😉

browser only though

---

<div class="post-metadata">

**Author:** ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)\
**Post date:** [January 10, 2023, 6:14pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/6 "2023-01-10T18:14:38Z")

</div>

And plugging a mouse into the pins on a hardware? (does arcade hardware have pins? I don’t own any)

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 10, 2023, 6:15pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/7 "2023-01-10T18:15:08Z")

</div>

@Salex nope, no hardware support planned. this one will be browser only

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [January 10, 2023, 6:21pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/8 "2023-01-10T18:21:40Z")

</div>

So you’re saying that you could introduce browser-only features? Doesn’t that mean you could add more unique colors and make it exclusive to the sim

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 10, 2023, 6:24pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/9 "2023-01-10T18:24:18Z")

</div>

nope! 99% of the code for arcade is shared between the hardware and browser, including all of the image manipulation code. if we were to support more colors, we would have to re-implement huge portions of the game engine for the browser which would be a bad idea

adding a new feature for just the browser is easy though, since it doesn’t require any changes to the code that runs on the hardware.

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [May 30, 2023, 9:50pm UTC](https://forum.makecode.com/t/can-someone-make-a-mouse-extension/17332/10 "2023-05-30T21:50:28Z")

</div>

> [@UnsignedArduino](#):
>
> and when there are more than two touches happening simultaneously?

i think we can just take the last input. and if they ar activated in the same time just pic a random one
