source: src/fs.py@ 3:ca35ec2b9cc4

Last change on this file since 3:ca35ec2b9cc4 was 3:ca35ec2b9cc4, checked in by István Váradi <ivaradi@…>, 12 years ago

The FSUIPC data collection framework works

File size: 797 bytes
Line 
1# Module for generic flight-simulator interfaces
2
3# Flight simulator type: MS Flight Simulator 2004
4TYPE_FS2K4 = 1
5
6# Flight simulator type: MS Flight Simulator X
7TYPE_FSX = 2
8
9# Flight simulator type: X-Plane 9
10TYPE_XPLANE9 = 3
11
12# Flight simulator type: X-Plane 10
13TYPE_XPLANE10 = 4
14
15class ConnectionListener:
16 """Base class for listeners on connections to the flight simulator."""
17 def connected(self, fsType, descriptor):
18 """Called when a connection has been established to the flight
19 simulator of the given type."""
20 print "fs.ConnectionListener.connected, fsType:", fsType, ", descriptor:", descriptor
21
22 def disconnected(self):
23 """Called when a connection to the flight simulator has been broken."""
24 print "fs.ConnectionListener.disconnected"
25
Note: See TracBrowser for help on using the repository browser.