Raf Posted June 15, 2013 Author Posted June 15, 2013 Line 20. But as I said, that's not enough, you have to replicate (and modify) a section of code (like the one between SWITCH PART and RADIO PART comments) for the new panel. And also know the device ID. I'll replicate the code stuff but that won't be enough (don't even know how many bytes to read...) Here, copy the new one, https://raw.github.com/raffaeleragni/saitek-panels/master/src/Main.java
Trubshaw Posted June 16, 2013 Posted June 16, 2013 Really good work RAF. Have you sent Saitek an e-mail? If they had any sense they would support your work. After It would lead to more sales of their panels to DCS users. Cheers [sIGPIC][/sIGPIC] TrubshawRN -=SHREK 94=-
Raf Posted June 16, 2013 Author Posted June 16, 2013 MMh, dunno about that, but I've found this some time ago... http://forum.simflight.com/topic/71786-programming-of-the-saitek-pro-flight-panels-with-fsuipc-and-lua/ Did someone already make a LUA stuff for this? Seems so but no links, no files...
-Demon- Posted June 16, 2013 Posted June 16, 2013 Really good work RAF. Have you sent Saitek an e-mail? If they had any sense they would support your work. After It would lead to more sales of their panels to DCS users. Cheers very good point!!! Raf you defenetly should contact them. Maybe they support you and we will be able to also configure rshift buttons!!!! Give it a try. cheers Demon [sIGPIC][/sIGPIC] Founder of the -=VDS=- http://www.virtual-dragon-squadron.de:pilotfly:
Raf Posted June 16, 2013 Author Posted June 16, 2013 The right side keyboard is a limitation of the library i have in here, nothing to do with them.
nickmow Posted June 16, 2013 Posted June 16, 2013 RAF is it possible to map all the buttons on the switch panel ? I see several have no keys allocated to them and I could easily make use of them. It's no chore to change assignments in DCS for me but allocating keys in your programme is a bit challenging for me. Im going to say it again.....this is excellent and as the other guys say, you should be talking to Saitek, you've brough an amazing functionality to the products they seem to of abandoned support for. Thanks again Nick
Trubshaw Posted June 16, 2013 Posted June 16, 2013 Absolutely agree. Saitek want to sell panels. So if they could add an install to their driver cd that said it would allow some function in DCS World they should be laughing all the way to the bank. Many of us have gone thought the fsx route and bought saitek panels that collect dust in DCS world. If I were saitek I offer RAF some money and equipment. After all you have effectively done a 'proof of concept' with your work so far. Keep it up. [sIGPIC][/sIGPIC] TrubshawRN -=SHREK 94=-
Raf Posted June 16, 2013 Author Posted June 16, 2013 You can assign keys by uncommenting (removing the #) the line and then writing the keystroke after the equals... you can use any combination of alt/shift/ctrl (in theory also alt_gr but never tested). This is my current config...keys.zip
nickmow Posted June 16, 2013 Posted June 16, 2013 You can assign keys by uncommenting (removing the #) the line and then writing the keystroke after the equals... you can use any combination of alt/shift/ctrl (in theory also alt_gr but never tested). This is my current config... Is that in the file like the one you uploaded in this post or which file ? If not ? Thanks RAF sorry to keep asking lots of questions :music_whistling:
Raf Posted June 16, 2013 Author Posted June 16, 2013 Yes, keys.properties is the file to edit for keystrokes It's just a name/value pair. When 'ON' means the switch is turned on, and OFF the opposite, though for some stuff (like gears and positional knobs) you have more ONs and OFFs (or actually, two variables), it's just how the panel gives info, dunno why.
nickmow Posted June 16, 2013 Posted June 16, 2013 Yes, keys.properties is the file to edit for keystrokes It's just a name/value pair. When 'ON' means the switch is turned on, and OFF the opposite, though for some stuff (like gears and positional knobs) you have more ONs and OFFs (or actually, two variables), it's just how the panel gives info, dunno why. OK got that seems simple thanks, Now where should the key.properties file be saved ? I have it in the Folder "SaitekPanel" on my desktop with all the other contents of the zip. It works as you uploaded it but the key.properties file I downloaded later. which folder should it be in ?
Raf Posted June 17, 2013 Author Posted June 17, 2013 The same folder where there is already one. The main folder
nickmow Posted June 18, 2013 Posted June 18, 2013 Got it, all good ! Keys changed and assigned, Awesome !
GiXXeR Posted August 13, 2013 Posted August 13, 2013 First of all a big thank you to Raf you made a great work thats really awesome !!!! i have just a question to you .... i got all your stuff working and it works fine !!!! but when i want to edit the shortcuts i must edit the key file ... ok .... when i have edited this file must i compile a new jar file with marvig or can i edit the key file as often i Need and have to do nothing then to start the start.bat ???
nickmow Posted August 20, 2013 Posted August 20, 2013 Gixxer, I think you just edit the key file. Seems to work for me. I think this is one of the best developments ever. Even if it means just flicking the gear knob for undercarriage. Simple and effective.
GiXXeR Posted August 25, 2013 Posted August 25, 2013 (edited) i guess your right should be really the best Emu for saitek Panels ..... but for me i can't get it working ...... i thought what raf has build is like a Keyboard Emu .... when i open my Texteditor then i can see the shortcuts and see that something is happen but when i open the game and here i must be honest it isn't for dcs it's for take on heli and also for arma .... and when i start the game or even glovepie for Controlling i get no Response from my saitek Panels ...... any idea ????? Edited August 25, 2013 by GiXXeR
nickmow Posted August 27, 2013 Posted August 27, 2013 If its in take on Heli and arma it might be that your Saitek panel is generating shift and control keys. Eg. Shift+G.....not sure if Arma would see those ?
GiXXeR Posted August 29, 2013 Posted August 29, 2013 Ok i find a way to get the hole stuff working .... ARMA and ToH will not recognize the sending keystrokes.... There is no Input when i want to Setup the keybindings so i had to improve using a nice tool -> glovepie and write a complete table for rafs keystrokes to translate them for arma and toh and jeah it rocks ..... thanks for that really amazing nice tool RAF you did a perfect work and thank you nickmow just for reading my lines ;-)
Diettie Posted August 31, 2013 Posted August 31, 2013 Dear Guys, It really is great that RAF made it possible to have the Saitek switch and radio panel work in DCS!!I bought them for FSX, but now I am flying only DCS. Could somebody help? I tried to get the panels work and tried really everything. Have study the thread and the read me's, but cannot get the start.bat to work (gives the message that the mvn is not recognized as an internal or external program or batchfile...). Does the program work only in 32 bit versions, my system is Windows 7/64 bit? Could this be the problem? Greetings
GiXXeR Posted September 1, 2013 Posted September 1, 2013 @diettie first you must download that .....http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html then not running start.bat as admin when you start the bat as admin the mvn message is comming ;-) !!!!! and Switch one Switch on and off again to init ..... i use win8 64x and it works for me too..... else i found out some more probs ...... in my case i don't know why but i have to kick the ALTGR key cause it would kick RAFs pgm in any way. it would also kick the pgm when i combine keys whenever ALTGR is included !!!
Diettie Posted September 1, 2013 Posted September 1, 2013 (edited) Thanks nickmow and GIXXeR for your reply. GIXXeR, tks for the java-link, it seems I downloaded the wrong Java. Now I get at least the start.bat working and the panels start up. However within DCS my panels don't work. When I start up the keys.properties file, the system begins to start up DCS, but I get a totally black screen immediately, and that's it. Have to shut down DCS by using ctrl-alt-delete. May be I did something totally wrong, but really tried everything I could thought of. Maybe somebody still has an idea... Edited September 1, 2013 by Diettie
nickmow Posted September 1, 2013 Posted September 1, 2013 Why do you start up the keys properties file ? You just need to use the start.bat. I tested it with notepad creat a new file and use some switches, it should "type" the relevant letters. Other thing is you can start DCS first, then once it's running, alt/Tab and then the start.bat We need to get you working with this :thumbup:
Diettie Posted September 2, 2013 Posted September 2, 2013 Thks nickmow for your help! When i tested the switch panel in notepad, only a few (less than the half of the switches) respond, and when I actually use the switch panel in DCS, only the gear handle work (only with F-15, FC-3). (The radio panel does not respond at all.) How did you configure the switches within DCS and get the panel fully functional? For me it is still a big secret..
GiXXeR Posted September 14, 2013 Posted September 14, 2013 hey diettie i have the same probs now then you have and can't figure it out.... i have tested my saitek on a Laptop and a pc Laptop is running fine and on my pc only the Switchpanel gives me Output in a text file nothing more ...... i will spend some time to get some more Information and give a respond when i have an idea .... perhaps somebody here has any ideas .... ;-)
Recommended Posts