collapse

* Who's Online

  • Dot Guests: 8
  • Dot Hidden: 0
  • Dot Users: 2
  • Dot Users Online:

* Recent Topics/Posts

I am a newbie who took off from Japan sir by Atlas
[May 16, 2024, 12:43:47 PM]


Mag switches with DCS by questerymj
[May 11, 2024, 08:11:05 AM]


USAeroSim DCS F16c CDU Software by snakedoc
[May 10, 2024, 09:10:22 AM]

Author Topic: Simple way (portable) to send a keypress event to BMS?  (Read 1001 times)

hoover

  • Guest
Simple way (portable) to send a keypress event to BMS?
« on: November 03, 2018, 08:20:31 AM »
Hi folks,

I'm trying to get Komurcu's MFDE android app (icp only) to talk to Falcon BMS when running in WINE on Linux *without* using the MFDE server part as that won't run properly in WINE.

Using a simple python handler I can already receive keypresses / events from the Android app, but how do I send them to Falcon BMS? I guess some shared memory jostling is involved here, right?

I'm looking for a way to send those "SimICP" callbacks (and later, probably others) to Falcon BMS in a portable manner that works on Linux.

All I found in the "technical docs" so far is a description of the shared memory bits, but no way of sending input events / keypresses *to* BMS.

Thanks in advance & all the best,

Uwe



hoover@feynman ~ $ python bin/mfde_testserver2.py
started on 21111
connected
got CmdHandShake@21111
connected
got SimICPCom1@21111
connected
got SimICPCom2@21111
connected
got SimICPTILS@21111
connected
got CmdStopDED@21111@21114@100
connected
got CmdStopRWR@21111@21116@100


Offline salaxi54

  • General
  • ******
  • Join Date: Feb 2012
  • Location: Athens
  • Posts: 1504
  • Country: gr
  • VP Awards Most Time Online Award: Awarded to those 30 members with most time on the forum Money Saver: Given to those that try to keep cost to a minimum Old Geezer Award: Awarded after 10 years of community service Top Poster Award: for those 30 members with most posts 1000+ posts Award: Awarded for achieving over 1000 posts Outstanding Build Award: Awarded for an outstanding pit build
    • Buy me a beer
    • Awards
Re: Simple way (portable) to send a keypress event to BMS?
« Reply #2 on: November 03, 2018, 10:12:47 AM »
Nice to know that it works, but isn't Falcon 'crawling' through WINE on Linux? I've no personal experience, but my guess is that you would need quite some horsepower. Please enlighten us if you would.  :thumbsup:

hoover

  • Guest
Re: Simple way (portable) to send a keypress event to BMS?
« Reply #3 on: November 03, 2018, 12:06:55 PM »
For me, BMS fps on Linux through WINE are faster than on windows (1070ti, win7 on a separate partition). Performance-wise I have absolutely no complaints about BMS running in a Linux environment. 

:beer:

All the best, Uwe

Offline Nikolas_A

  • Global Moderator
  • General
  • *****
  • Join Date: Oct 2004
  • Location: Athens, Hellas
  • Posts: 3773
  • Country: gr
  • VP Awards 3000+ posts Award: Awarded for achieving over 3000 posts Top Poster Award: for those 30 members with most posts Old Geezer Award: Awarded after 10 years of community service Most Time Online Award: Awarded to those 30 members with most time on the forum
    • Awards
Re: Simple way (portable) to send a keypress event to BMS?
« Reply #4 on: November 05, 2018, 05:32:12 PM »
I guess some shared memory jostling is involved here, right?
Shared memory only accommodates outputs. For callbacks you have to emulate keyboard events or DX button presses.

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal