Subversion Repositories group.electronics

Rev

Rev 156 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 157
Line 288... Line 288...
288
                this.setFreq(2, ref right);
288
                this.setFreq(2, ref right);
289
                this.setFreq(3, ref left);
289
                this.setFreq(3, ref left);
290
            }
290
            }
291
        }
291
        }
292
 
292
 
-
 
293
        public override void FsxInit() { }
-
 
294
 
293
        public override void MapEvents(FSXObject fsx) {
295
        public override void MapEvents() {
294
 
296
 
295
        
297
        
296
        }
298
        }
297
 
299
 
298
        public override void FsxEvent(FSXObject fsx, SIMCONNECT_RECV_SIMOBJECT_DATA data) {
300
        public override void FsxEvent(SIMCONNECT_RECV_SIMOBJECT_DATA data) {
299
 
301
 
300
            if (data.dwRequestID == (uint)FSXObject.DATA_REQUESTS.AVIONICS) {
302
            if (data.dwRequestID == (uint)FSXObject.DATA_REQUESTS.AVIONICS) {
301
                
303
                
302
                FSXObject.Avionics_Data avionics = (FSXObject.Avionics_Data)data.dwData[0];
304
                FSXObject.Avionics_Data avionics = (FSXObject.Avionics_Data)data.dwData[0];
303
                
305
                
Line 334... Line 336...
334
                this.setNavComFreqs(navcomdata);
336
                this.setNavComFreqs(navcomdata);
335
            }
337
            }
336
 
338
 
337
        }
339
        }
338
 
340
 
339
        public override void FsxReady(FSXObject fsx) {
341
        public override void FsxReady() {
340
 
342
 
341
        }
343
        }
342
        
344
        
343
 
345
 
344
        // @TODO: Make this work with COMM1/COMM2
346
        // @TODO: Make this work with COMM1/COMM2
345
        public override void SimButtons(FSXObject fsx) {
347
        public override void SimButtons() {
346
 
348
 
347
            if (this.simStatus != 0)
349
            if (this.simStatus != 0)
348
                return;
350
                return;
349
 
351
 
350
            this.updateInput();
352
            this.updateInput();