
pos_ticks
- returns the number of ticks since the last positive pulse
- integer

Sample Code

################ get the number of ticks since the last positive pulse
# import bge module
import bge
# get the controller
cont = bge.logic.getCurrentController()
# get the sensor attached to the controller
# my sensor is named Sensor_1
sen = cont.sensors["Sensor_1"]
# get the pos_ticks
pos = sen.pos_ticks