Jump to content
The simFlight Network Forums

Hipp0

Members
  • Posts

    27
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Hipp0's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The release with parameter 0 works. However, it seems the wheel doesn't work as I first thought. I think I can muddle through now with the above suggestions. Many thanks.
  2. I wish I'd never mentioned this now as it's a bit of a red herring. The wheel is like a mouse wheel, so in practice works as 3 buttons(2 for rotation, 1 as a press), each click-turn of the wheel is like a button press and release. It is NOT an axis. I use keys and the joystick's software because if I do this I can get the display (the throttle has a small display) to tell me what each button assignment does as I press it (which was once very convenient - in VR not so much!). Also, I use modifier buttons which are much easier to implement in the joystick software than with fsuipc. I could do it all with buttons, and will do so if required. I think, in this case, that I don't. However, I will do at some point, so will investigate. I will try to set the release as described. But wouldn't you have to do the same thing with buttons? I think everything will work fine, so hopefully will leave it there. I have plenty of options to try it seems. Thanks for all your help.
  3. Thanks again Pete, sorry to ruin your Saturday. I think I'm slowly getting there. The issue of the slowdown seems to have gone, but I am not able to send each command more than once, e.g. for SPDBUG_INC, it will increment once, but no matter how many times I hit the key it won't increment again (until I press another key). *** This is my mjc8q400.lua: In the fsuipc5.ini I have:
  4. Hi Pete, Many thanks for replying. Unfortunately I'm being dense, I sort of get what you mean but have no idea how to implement it. I've skimmed through the manuals, and searched these threads, but am unable to find an example of what to do. I wonder if I could trouble you to add a bit more detail to your response by way of an example. Could you explain how to assign the following function to be activated on a joystick button press / or key: I have the following in the mjc8q400.lua file: function AP_AP_press () ipc.writeLvar("MJC_VAR_WRITE_VALUE", 11) ipc.writeLvar("MJC_VAR_WRITE_CODE", 33470) end I have [LuaFiles] 10=mjc8q400 in the fsuipc5.ini I don't know what to do with event.param, I assume something like event.param("AP_AP_press") but where would this go, and is it correct? I assume the [Auto.Q400] section goes into FSUIPC5.ini but have no idea what to put into it. I assume that once the lua file and [Auto] section are correctly set up, I can assign each function to a button / key as always as you state above:
  5. Hi, please could you help me out? I wish to assign some commands to my joystick for the Majestic Q400 in P3D 4.4, FSUIPC (UpdatedByVersion=5150). As an example, the speed bug setting. I have the following in the lua (I found these commands in a file for LINDA): -- MIP_SPDBUG_INC if ipcPARAM == 105 then ipc.writeLvar("MJC_VAR_WRITE_VALUE", 1) ipc.writeLvar("MJC_VAR_WRITE_CODE", 43080) end -- MIP_SPDBUG_DEC if ipcPARAM == 106 then ipc.writeLvar("MJC_VAR_WRITE_VALUE", -1) ipc.writeLvar("MJC_VAR_WRITE_CODE", 43080) end -- MIP_SPDBUG_PRESS if ipcPARAM == 107 then ipc.writeLvar("MJC_VAR_WRITE_VALUE", 1) ipc.writeLvar("MJC_VAR_WRITE_CODE", 75899) end and in the fsuipc5.ini I have: 146=66,8,L10:R,107 -{B: Press=Lua mjc8q400 }- 148=66,9,L10:R,105 -{shft+B: Press=Lua mjc8q400 }- 150=66,10,L10:R,106 -{ctl+B: Press=Lua mjc8q400 }- It I have assigned the keystrokes using my joystick's (X52 Pro) software to a wheel on the throttle (it's like a mouse wheel, and is seen as three buttons: up, down, press). It works, but as the commands are sent, the sim is interrupted and drastic frame rate drops occur. I am running in VR, so it makes it unusable. I have also tried assigning directly to joystick button(s) (rather than using keystrokes w/ joystick software) and the same thing happens. The same thing happens for other buttons and similar functions: e.g. the VS wheel, on a toggle switch. There are no issues assigning commands in the usual (fs controls, not lua) way (e.g. 73=190,8,65615,0 -{.>key: Press=ELEV_TRIM_UP }-) It's been a while since I used lua / fsuipc, but I don't think I'm doing anything differently now, and I don't think I've ever had this issue before. Thanks for any suggestions.
  6. Thanks very much for that. It seems so obvious now - and truly I'd never noticed it before. What a numpty.
  7. I often find myself making changes to my controller setups while running the sim at the same time. If I make changes to the fsuipc.ini file, I notice that they don't take effect until I restart the sim. Is there any way to make the changes take effect immediately? If not, what would be the quickest way? Thanks for any assistance.
  8. Hello again, It appears that it is possible. Stumbled across it in the lua library manual, it's code 9 for tab: ipc.keypress(9) -- this works as desired for me.
  9. Thanks for replying, however I don't think you've answered my question. I would like to hold down a joystick button and have this send the (held) tab key to FSX. I would like to do this in FSUIPC. Is this possible?
  10. Hi, I wanted to set up a joystick button to send a TAB keystroke using fsuipc, but can't find a keycode (in the advanced manual) other than to use the key as a shift. Is this possible? Thanks.
  11. All very reasonable and informative as usual - thanks for replying. I'm using 4.827.
  12. And since I'm here, I'd like to ask another question if it's not too much trouble. I would like to have the choice of two (or more) modifier buttons, so in the example I gave above I would like be able have button 19 and button 2 available as modifiers. What would be the best way to do this? This appears to do what I want but does require another line to be added. 500=CP(-0,19)(-0,2)5,0,C65651,0 501=CP(+0,19)5,0,C65648,0 502=CP(+0,2)5,0,C65648,0 (-0,19)(-0,2) appears to be an AND, maybe a similar syntax to do an OR could be added (or already exists and I've missed it), so that lines 501 and 502 could be combined into one line? I've setup literally hundreds of commands with only one modifier button (19). Although it won't be too much trouble to change them all to the above, it would be nice to have a more efficient way of doing this with just two lines instead of three.
  13. Hi, I've been playing around with compound statements for the first time and was having an issue where they appeared to work for some airplanes and not others. After hours of frustration I think I tracked the cause down to not having any button definitions already created for the controller that the modifier button belongs to. So for [buttons.FSX Default C-172] 500=CP(-0,19)5,0,C65651,0 501=CP(+0,19)5,0,C65648,0 the command with (+0,19) doesn't work. It doesn't matter whether I hold down button 0,19 or not, C65651 is always sent; and the logger always shows the condition for (+0,19) as false. But with [buttons.FSX Default C-172] 0=P0,32,C65607,0 500=CP(-0,19)5,0,C65651,0 501=CP(+0,19)5,0,C65648,0 everything works as it should. As I couldn't find a previous report of this or any mention in the manuals, I thought I'd post it here. I realise it's unlikely that not many people will have controllers to which they haven't assigned ANY functions to buttons - I'm afraid that I do.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.