tag:blogger.com,1999:blog-5399904117886185608.post5910312692043167157..comments2021-07-19T07:51:35.303-07:00Comments on Fluxrobotics: Joystick test application (Qt + DirectInput8) [Windows]Executorhttp://www.blogger.com/profile/05244413920772398204noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5399904117886185608.post-67245913995813163412019-11-06T11:26:10.357-08:002019-11-06T11:26:10.357-08:00Hi
The download link no longer works. Is it possib...Hi<br />The download link no longer works. Is it possible to get the source code somehow?<br />Johanhttps://www.blogger.com/profile/02006788107579950027noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-19793703811491079872016-08-03T21:03:51.641-07:002016-08-03T21:03:51.641-07:00Hello, thank you for sharing the program and it is...Hello, thank you for sharing the program and it is great! but when I run it on QT5, there will be some problem, for example ,some function on XInput could not be used. I want to know how to make it run successfully on QT5?Anonymoushttps://www.blogger.com/profile/13535411366082573488noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-27608653476336490292015-04-29T10:00:29.893-07:002015-04-29T10:00:29.893-07:00Hi,
which compiler and OS are you using? This seem...Hi,<br />which compiler and OS are you using? This seems like gcc specific error message. This is not a real mistake here, as HWND is a windows Handle and should be 32 bit integer normally. You can cast type safely there.<br /><br /> f_haveJoystick = input.initDInput((HWND)this->effectiveWinId());<br /><br />The code was developed originally with visual C++ which is less C++ standard compatible as gcc. GCC is right in this case. I will update the code.<br /><br />Does above mentioned type cast work for you?Executorhttps://www.blogger.com/profile/05244413920772398204noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-56225088903052746392015-04-28T23:26:06.820-07:002015-04-28T23:26:06.820-07:00Hi ,
im trying to use your awesome code in my appl...Hi ,<br />im trying to use your awesome code in my application, but i meet some problems with f_haveJoystick = input.initDInput(this->winId());<br />invalid conversion from 'WId {aka unsigned int}' to 'HWND' [-fpermissive] f_haveJoystick = input.initDInput(this->effectiveWinId()); <br /> ^Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-72315082420060539202015-02-09T10:33:30.873-08:002015-02-09T10:33:30.873-08:00The source and binary location were broken for a w...The source and binary location were broken for a while because of updated upload scripts on the hosting. Probably worth uploading all of the code base from private hosting to github, so everyone can improve and fork them easily. I will do that in few days :)Executorhttps://www.blogger.com/profile/05244413920772398204noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-26612867818654082442015-02-09T00:55:35.384-08:002015-02-09T00:55:35.384-08:00they are valid buddy....check them again...they wo...they are valid buddy....check them again...they worked well for meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-6221891803257132392015-01-15T03:41:31.063-08:002015-01-15T03:41:31.063-08:00Hi, the links for the source and demo are no longe...Hi, the links for the source and demo are no longer valid. Is it possible to have them updated ?Anonymoushttps://www.blogger.com/profile/01298018314297468606noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-3129621440572623052014-03-14T09:54:04.861-07:002014-03-14T09:54:04.861-07:00Your code example is excellent and ran straight aw...Your code example is excellent and ran straight away. Also, it was very easy to integrate into my test application. Many thanks for sharing!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-71958336111862504712012-08-26T17:23:48.324-07:002012-08-26T17:23:48.324-07:00Hi. I tried compiling your code, but I get the fol...Hi. I tried compiling your code, but I get the following errors: <br /><br />line: for (int r = 0; r < std::min(tblAxis.rows(),8); r++)<br /><br />..\QtJoystick\mainwindow.cpp(48) : error C2589: '(' : illegal token on right side of '::'<br />..\QtJoystick\mainwindow.cpp(48) : error C2059: syntax error : '::'<br />..\QtJoystick\mainwindow.cpp(48) : error C2143: syntax error : missing ';' before ')'<br />..\QtJoystick\mainwindow.cpp(48) : error C2143: syntax error : missing ';' before ')'<br />..\QtJoystick\mainwindow.cpp(49) : error C2143: syntax error : missing ';' before '{'<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-65406864142747968652012-06-14T00:07:05.375-07:002012-06-14T00:07:05.375-07:00Hello, Luis. Unfortunately, this program shall com...Hello, Luis. Unfortunately, this program shall compile only under Windows, because it makes use of Windows-dependent component: DirectX, for which there isn't cross-platform header file dinput.h.<br /><br />Your program could start in Linux inside Windows emulator (Linux can not execute *.exe Win32/PE files natively).<br /><br />To solve your problem, you shall probably try to use SFML library (http://www.sfml-dev.org/). Just download and run SFML library for Linux 32/64 bits and follow documentation. Joystick usage is very simple and straightforward with that library.<br />Look at C++ class sf::Input (http://www.sfml-dev.org/documentation/1.6/classsf_1_1Input.php).<br /><br />I will write small cross-platform demo for Qt+SFML to support Joystick under Linux/Windows within few days.Executorhttps://www.blogger.com/profile/05244413920772398204noreply@blogger.comtag:blogger.com,1999:blog-5399904117886185608.post-27011450658144469502012-06-13T15:45:34.013-07:002012-06-13T15:45:34.013-07:00hi your program is great, when i run it everything...hi your program is great, when i run it everything is ok, but when i open the project with Qt run it, it gives me a lot of errors from dinput.h file. Im using linux. Thanks for your answer. Your demo is really great XD.Luis Alberto Arellano Zeahttps://www.blogger.com/profile/12429193642226943662noreply@blogger.com