• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Keyboard scrolling

Status
Not open for further replies.
Level 4
Joined
Aug 17, 2005
Messages
82
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
Joined
Jul 12, 2005
Messages
764
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:

Event-
Player 1 Presses Up
-"- Down
// Do that with all keys and players
Actions-
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...
 
Status
Not open for further replies.
Top