Changeset 34393 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Nov 26, 2010 2:13:35 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68162
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r34082 r34393 323 323 else: 324 324 print "pointer shape event: w=%d h=%d shape len=%d" %(psev.width, psev.height, len(shape)) 325 elif type == ctx['global'].constants.VBoxEventType_OnGuestMouse Event:325 elif type == ctx['global'].constants.VBoxEventType_OnGuestMouse: 326 326 mev = ctx['global'].queryInterface(ev, 'IGuestMouseEvent') 327 327 if mev: 328 328 printMouseEvent(ctx, mev) 329 elif type == ctx['global'].constants.VBoxEventType_OnGuestKeyboard Event:329 elif type == ctx['global'].constants.VBoxEventType_OnGuestKeyboard: 330 330 kev = ctx['global'].queryInterface(ev, 'IGuestKeyboardEvent') 331 331 if kev: … … 392 392 type = ev.type 393 393 #print "got event: %s %s" %(str(type), asEnumElem(ctx, 'VBoxEventType', type)) 394 if type == ctx['global'].constants.VBoxEventType_OnGuestMouse Event:394 if type == ctx['global'].constants.VBoxEventType_OnGuestMouse: 395 395 mev = ctx['global'].queryInterface(ev, 'IGuestMouseEvent') 396 396 if mev: 397 397 l = "%d: m %d %d %d %d %d %d\n" %(stamp(), mev.absolute, mev.x, mev.y, mev.z, mev.w, mev.buttons) 398 398 demo.write(l) 399 elif type == ctx['global'].constants.VBoxEventType_OnGuestKeyboard Event:399 elif type == ctx['global'].constants.VBoxEventType_OnGuestKeyboard: 400 400 kev = ctx['global'].queryInterface(ev, 'IGuestKeyboardEvent') 401 401 if kev:
Note:
See TracChangeset
for help on using the changeset viewer.