codefox Posted September 15, 2015 Posted September 15, 2015 I've been playing around with ED's EFM template and found some issues while I tried to read input command values other than the stick axis'. I tried using the function "ed_fm_set_command" which appears to be in charge of handling the inputs but somehow I can't really get any commands to work besides the axis' and the wheel brakes. How do I handle other controls in the EFM? Did I miss something? [sIGPIC][/sIGPIC]
RagnarDa Posted September 16, 2015 Posted September 16, 2015 I had to search hard for this old post http://forums.eagle.ru/showpost.php?p=1982586 No idea if it still works though. DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
LJQCN101 Posted September 16, 2015 Posted September 16, 2015 Actually I'm in the same place as you. Currently I just use GetAsyncKeyState function for example: if (GetAsyncKeyState(0x53) & 1) //which means press "S" to do something. { autopilot = autopilot + 1; if (autopilot > 1) autopilot = 0; } My version: http://forums.eagle.ru/showthread.php?t=147080 (updated today.) EFM / FCS developer, Deka Ironwork Simulations.
codefox Posted September 16, 2015 Author Posted September 16, 2015 I had to search hard for this old post http://forums.eagle.ru/showpost.php?p=1982586 No idea if it still works though. Thanks, I'll try that when I get out of the office. Actually I'm in the same place as you. Currently I just use GetAsyncKeyState function for example: if (GetAsyncKeyState(0x53) & 1) //which means press "S" to do something. { autopilot = autopilot + 1; if (autopilot > 1) autopilot = 0; } My version: http://forums.eagle.ru/showthread.php?t=147080 (updated today.) That's a "solution" I've thought of as well, might use DInput for stick buttons as well. However, it would be pretty difficult to make a team play with this aircraft as they all like different setups. [sIGPIC][/sIGPIC]
Recommended Posts