# Keyboard/mouse input extension

**URL:** <https://forum.makecode.com/t/keyboard-mouse-input-extension/5988>\
**Category:** Arcade\
**Tags:** extension\
**Created:** [February 5, 2021, 11:48pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988 "2021-02-05T23:48:54Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![145145](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/145145/32/17436_2.png) [@145145](https://forum.makecode.com/u/145145)\
**Post date:** [July 23, 2024, 3:54pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/22 "2024-07-23T15:54:55Z")

</div>

Welcome to the code-munity, @Voistrosity

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [July 23, 2024, 10:33pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/23 "2024-07-23T22:33:30Z")

</div>

Happy ANiversery!! I’m sorry. You could try using Menu button for inventory. for mouse, you could um…

> **[Tank Test!](https://arcade.makecode.com/08687-55059-27638-99327)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

check this out it has mouse control

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [July 28, 2024, 4:03am UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/24 "2024-07-28T04:03:58Z")

</div>

Hmm, that project looks really familiar… 🤔

(Please credit me when featuring my stuff)

Other than that, I used the screen tilt blocks in the basic controller extension along with some simple math stuff to get a location on the screen relative to the tilt and place a sprite there (with ghost through walls on)

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [July 28, 2024, 3:14pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/25 "2024-07-28T15:14:12Z")

</div>

That was a glitch when posting

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [July 28, 2024, 3:14pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/26 "2024-07-28T15:14:15Z")

</div>

somehow it decided to post it here?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 28, 2024, 3:53pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/27 "2024-10-28T15:53:03Z")

</div>

> [@richard](#):
>
> …I also will be adding support for keyboard typing in the “ask for string” and “ask for number” blocks in the next release so you can look forward to that.

Got the browser extension to work in beta, but not keyboard typing in the “ask for string” and “ask for number” blocks.

When you mentioned:

> [@richard](#):
>
> …in the next release…

I thought you meant the official release and not beta. Is it around the corner in beta? I notice that you have many inhouse fans rooting for this as well and all seems approved a long time ago, but not merged?

> <https://github.com/microsoft/pxt-common-packages/pull/1469>
>
> Fixes https://github.com/microsoft/pxt-arcade/issues/4845
> 
> Adds an optional "u…se system keyboard" parameter for the "ask for string" and "ask for number" APIs that allows you to type using your actual keyboard and not the in-game one. There will be a corresponding PR in pxt-arcade-sim that has the simulator side of this.
> 
> This will require an upgrade rule. Or, if we want, we can deprecate this block and make a new one that always pops the system keyboard.

---

<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:** [October 28, 2024, 4:55pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/28 "2024-10-28T16:55:11Z")

</div>

@Vegz78 this will be the first thing i work on when we start preparing the arcade release! the reason i never merged it was because i wanted to do some more thorough testing before i check it in. don’t worry though, it will definitely be in the next release.

---

<div class="post-metadata">

**Author:** ![someDev](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@someDev](https://forum.makecode.com/u/someDev)\
**Post date:** [September 11, 2025, 5:00pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/29 "2025-09-11T17:00:02Z")

</div>

I need help because the mouse extension doesn’t work with the camera. The mouse physically moves but the extension doesn’t think this and keeps its x and y values the same. when move somthing relative to the mouse you can quickly see this. For example i have a gun that rotates to face the mouse’s direction but it faces where the extension thinks the mouse is.

---

<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:** [September 11, 2025, 5:01pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/30 "2025-09-11T17:01:25Z")

</div>

@someDev you can use the camera left/top blocks in the scene category to adjust the x/y values

---

<div class="post-metadata">

**Author:** ![someDev](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@someDev](https://forum.makecode.com/u/someDev)\
**Post date:** [September 12, 2025, 12:36pm UTC](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988/31 "2025-09-12T12:36:43Z")

</div>

Ok think you. I will try this

[Previous page](https://forum.makecode.com/t/keyboard-mouse-input-extension/5988.md?page=1)
