Add new functions
This commit is contained in:
parent
bef397e0ae
commit
8ec7b8522a
2 changed files with 22 additions and 7 deletions
|
@ -798,6 +798,13 @@ func GetMousePosition() Vector2 {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetMouseDelta - Get mouse delta between frames
|
||||||
|
func GetMouseDelta() Vector2 {
|
||||||
|
ret := C.GetMouseDelta()
|
||||||
|
v := newVector2FromPointer(unsafe.Pointer(&ret))
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
// SetMousePosition - Set mouse position XY
|
// SetMousePosition - Set mouse position XY
|
||||||
func SetMousePosition(x, y int) {
|
func SetMousePosition(x, y int) {
|
||||||
cx := (C.int)(x)
|
cx := (C.int)(x)
|
||||||
|
@ -847,3 +854,18 @@ func GetTouchPosition(index int32) Vector2 {
|
||||||
v := newVector2FromPointer(unsafe.Pointer(&ret))
|
v := newVector2FromPointer(unsafe.Pointer(&ret))
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetTouchPointId - Get touch point identifier for given index
|
||||||
|
func GetTouchPointId(index int32) int32 {
|
||||||
|
cindex := (C.int)(index)
|
||||||
|
ret := C.GetTouchPointId(cindex)
|
||||||
|
v := (int32)(ret)
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetTouchPointCount - Get number of touch points
|
||||||
|
func GetTouchPointCount() int32 {
|
||||||
|
ret := C.GetTouchPointCount()
|
||||||
|
v := (int32)(ret)
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
|
@ -27,13 +27,6 @@ func GetGestureDetected() Gestures {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTouchPointCount - Get number of touch points
|
|
||||||
func GetTouchPointCount() int32 {
|
|
||||||
ret := C.GetTouchPointCount()
|
|
||||||
v := (int32)(ret)
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetGestureHoldDuration - Get gesture hold time in milliseconds
|
// GetGestureHoldDuration - Get gesture hold time in milliseconds
|
||||||
func GetGestureHoldDuration() float32 {
|
func GetGestureHoldDuration() float32 {
|
||||||
ret := C.GetGestureHoldDuration()
|
ret := C.GetGestureHoldDuration()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue