1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Mouse position

Discussion in 'Modding Help' started by SnIcKeRs, Feb 5, 2014.

  1. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Help me to get this without cblob. It seems I saw this method in code but I cant find it.
     
  2. master4523

    master4523 Masterful KAG Guard Global Moderator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    378
    getControls().getMouseWorldPos();
    returns the absolute mouse position (Vec2f)

    getControls().getMouseScreenPos();
    returns the mouse position (Vec2f) relative to the screen viewport
     
    nkChehov, ZeroZ30o and SnIcKeRs like this.
  3. SnIcKeRs

    SnIcKeRs Bison Rider

    Messages:
    148
    Thanks a lot ::):