home
 
 index of namespace default
 
 index of project tksdl
 
 index of module tksdl

Class tksdl.Mouse


SynopsisStatic wrapper class for the Mouse device

  Base classes:
  Methods:
Method getButtons
Get current button mask
Signature
getButtons():int
Returns
int

 
 top of page
Method getChangedButtons
Query changed button mask
Signature
getChangedButtons()

 
 top of page
Method getDx
Get relative horizontal mouse position
Signature
getDx():int
Returns
int

 
 top of page
Method getDy
Get relative vertical mouse position
Signature
getDy()

 
 top of page
Method getPointerMode
Query current mouse pointer autohide mode.
Signature
getPointerMode():int
Returns
int

 
 top of page
Method getX
Get absolute horizontal mouse position
Signature
getX():int
Returns
int

 
 top of page
Method getY
Get absolute vertical mouse position
Signature
getY():int
Returns
int

 
 top of page
Method grab
Grab mouse
Signature
grab()

 
 top of page
Method isGrabbed
Query whether the mouse is currently grabbed
Signature
isGrabbed():boolean
Returns
boolean

 
 top of page
Method setPointerMode
Set autohide pointer mode.
Signature
setPointerMode(intmode)
Arguments

 
 top of page
Method showPointer
Show/hide the mouse pointer
Signature
showPointer(booleanbVisible)
Arguments
booleanbVisible

 
 top of page
Method toggleGrab
Toggle mouse grab
Signature
toggleGrab()

 
 top of page
Method ungrab
Ungrab mouse
Signature
ungrab()

 
 top of page
Method unproject
Unproject mouse position and return near/far vectors
Signature
unproject(ObjectnearRet,
  ObjectfarRet 
  )  
Arguments
ObjectnearRetReceives the near vector. Must be able to hold at least 3 array elements.
ObjectfarRetReceives the far vector. Must be able to hold at least 3 array elements.

 
 top of page
Method warpTo
Move mouse cursor to specified window coordinates
Signature
warpTo(intx,
  inty 
  )  
Arguments
intx
inty

 
 top of page
 

Project Modules:tksdl 
Project Classes:AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport 
Project Functions:MIDINoteToFrequency 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54