View Single Post
08-04-07, 12:44 AM   #1
romkatv
A Deviate Faerie Dragon
Join Date: May 2006
Posts: 15
IsPlayerMoving, IsPlayerTyping implementation

Fellow gurus,

I need 2 functions for my addon.

1. IsPlayerMoving. Should return true iif player is moving in any direction. If player just turning left or right without movement, then function should return false. Generally speaking, if player tries to cast non-instant-cast spell and it says "can't do that while moving", then IsPlayerMoving should return true.

2. IsPlayerTyping. Should return true iif player's keyboard input goes to chat window. For example, if player pressed on her keyboard "enter" "h" "e" "l" and didn't press "enter" again, then function should return true because next key pressed will affect chat window and won't affect actions bars, etc.

Can anyone help me with this functions implementation? Any pointers?

Regards,
Roman.
  Reply With Quote