• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[JASS] Keyboard scrolling

Not open for further replies.
Level 4
Aug 17, 2005
Hello.Ive tried a few times but im really new at Jass and was wondering how I could write this down.I want to disable keyboard scrolling for my map completly would anyone be kind enough to tell me the code? :) ty
Level 11
Jul 12, 2005
Hmm... U want to disable the arrow control, but you still want to be able to scroll the map by moving the cursor on the border of the screen. I tried a thing, let's see how you like it:

Player 1 Presses Up
-"- Down
// Do that with all keys and players
Stop Camera for Triggering Player

The problem is that, it triggers right after a moment you press the button, and the screen scrolls a bit. But then, it stops. A bit strange...

The other thing is, you lock the camera to a unit. But the problem is, you cannot scroll the map with the mouse too...

I don't know why you want to 'turn off' keys scroll, but if you would write it, it might help to solve your problem.

btw, this isn't really a JASS problem...
Not open for further replies.