Add simple event "touch" to multi-touch Windows 7 messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Expired
|
Wishlist
|
Unassigned |
Bug Description
Hello,
This is a little patch for panda/windispla
For every touch a event named "touch" is sended using throw_event.
event parameter are :
- id of touch
- flags of touch
- x and y that are position of touch in windows coordinates.
There is a simple way to test this patch:
#------
import direct.
from direct.
import sys
class World(DirectObj
def __init__(self):
self.
def handleTouch(
print "touch : id=",id," flag=", flag, " x= ",x," y=", y
w = World()
run()
#------
tags: |
added: windows removed: contrib windows7 |
Would it perhaps be more consistent to have touch-up and touch-down events?