Hi, I’m pretty new to DCS and I’ve just got FC3. Prior to me getting it, I managed to rig my mouse as a stick for the SU-25T. (I found it from an old forum post by a certain T. Jacob, the code is a bit ways down the page):
To save you some scrolling, here is the code:
return {
keyCommands = {
{combos = {{key = 'MOUSE_BTN2'}}, down = iCommand_ExplorationStart, name = 'Enable visual recon mode', category = 'View Cockpit'},
{combos = {{key = 'MOUSE_BTN3'}}, down = iCommandViewTransposeModeOn, up = iCommandViewTransposeModeOff, name = 'Camera transpose mode (press and hold)', category = 'View Cockpit'},
},
axisCommands = {
-- mouse axes
{combos = {{key = "MOUSE_X", filter ={saturationX = 0.1, saturationY = 0.1, deadzone = 0.0, invert = false, slider = false, curvature = {-0.9}}}}, action = iCommandPlaneRollDelta, name = 'Roll'},
{combos = {{key = "MOUSE_Y", filter ={saturationX = 0.1, saturationY = 0.1, deadzone = 0.0, invert = false, slider = false, curvature = {-0.9}}}}, action = iCommandPlanePitchDelta, name = 'Pitch'},
{combos = {{key = "MOUSE_Z", filter ={saturationX = 1.0, saturationY = 1.0, deadzone = 0.0, invert = false, slider = true, curvature = {0}}}}, action = iCommandPlaneThrustCommonDelta, name = 'Thrust'},
{combos = {{key = 'MOUSE_X', reformers ={"LShift"}}}, action = iCommandPlaneViewHorizontal, name = 'Camera Horizontal View (mouse)'},
{combos = {{key = 'MOUSE_Y', reformers ={"LShift"}}}, action = iCommandPlaneViewVertical, name = 'Camera Vertical View (mouse)'},
{combos = {{key = 'MOUSE_Z', reformers ={"LShift"}}}, action = iCommandPlaneZoomView, name = 'Camera Zoom View (mouse)'},
--{action = iCommandPlaneSelecterHorizontal , name = 'I-251 Slew Horizontal (mouse)'},
--{action = iCommandPlaneSelecterVertical , name = 'I-251 Slew Vertical (mouse)'},
},
}
The code takes input from the mouse as aircraft control, while the scroll wheel changes the throttle. The SHIFT modifier with the mouse moves the player camera, so you can still look around, and SHIFT + scroll zooms in and out. The pathway for the code was:
DCS World OpenBeta \ Mods \ aircraft \ Su-25T \ Input \ su-25T \ mouse
However, when I created/edited the mouse files of FC3 aircraft with the same code, only the modified camera movement worked with the SHIFT modifier. Moving the mouse without the SHIFT modifier did nothing to maneuver the aircraft, and using scroll to adjust throttle didn’t work. I suspect this is because the iCommandPlaneRollDelta, iCommandPlanePitchDelta, and iCommandPlaneThrustCommonDelta are not defined for FC3 aircraft, but I’m not sure.
Some FC3 aircraft have their own mouse files, which contain one line of code. Judging by the name, it, well, binds keyboard commands to the mouse, but I'm not entirely sure how it works or how I could use it:
return bindKeyboardCommandsToMouse(folder .. "../")
I would love to have an actual joystick (or even just a console controller), but I probably won’t be able to get one for some time now. It’s not about the money, as it’s more of a personal issue. I’d prefer not to discuss about it. I would greatly appreciate focusing on the topic of fixing this bug rather than discussing why I should get a joystick over a mouse stick. I would also not like to argue about how the developers should include mouse control in the base game. It might be nice for players without joysticks (like me), but they definitely have bigger priorities. Any help would be greatly appreciated.
EDIT:
I realize now that I should attach my log file. I apologize for that. By this point, only the SU-25T and the SU-33 had the modified mouse file. The SU-25T's file worked, while the SU-33's file didn't.
dcs.log