Esempio n. 1
0
    def __init__(self, rID=None, data=None):
        """Constructor"""

        self.rID = rID
        self._sdk = _sdk
        self._vj = self._sdk._vj

        self.Data = Data(self)

        try:
            _sdk.vJoyEnabled()
            _sdk.AcquireVJD(rID)

        #TODO FIXME
        except vJoyException:
            raise
    def __init__(self, rID=None, data=None):
        """Constructor"""

        self.rID = rID
        self._sdk = _sdk
        self._vj = self._sdk._vj

        if data:
            self.data = data
        else:
            #TODO maybe - have self.data as a wrapper object containing the Struct
            self.data = self._sdk.CreateDataStructure(self.rID)

        try:
            _sdk.vJoyEnabled()
            _sdk.AcquireVJD(rID)

        #TODO FIXME
        except vJoyException:
            raise