View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001274 | OpenClonk | Engine - Controls | public | 2015-02-13 09:08 | 2016-05-01 20:35 | ||||
Reporter | Caesar | ||||||||
Assigned To | Luchs | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | Gentoo Linux | OS Version | ||||||
Product Version | |||||||||
Target Version | 8.0 | Fixed in Version | 8.0 | ||||||
Summary | 0001274: Gamepad not working | ||||||||
Description | Under linux, my gamepad is not working at all in openclonk. First off, unless USE_SDL_MAINLOOP is set, the gamepad code is not actually build. (That was easy to fix, see below) But then I got stuck. The input is received by C4GamePadControl::Execute just fine and are forwared to C4KeyboardInput::DoInput. There, no gamepad keypresses that is triggered seems to have the necessary KEYSTOPE_Control (keyboard input does). Explanations? Fixes? | ||||||||
Additional Information | --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -897,11 +897,10 @@ endif() find_package("Audio") # SDL -if(USE_SDL_MAINLOOP OR (Audio_TK STREQUAL "SDL_Mixer")) +if(USE_SDL_MAINLOOP OR (Audio_TK STREQUAL "SDL_Mixer") OR NOT WIN32) include(FindSDL) SET(HAVE_SDL ${SDL_FOUND}) include_directories(${SDL_INCLUDE_DIR}) - target_link_libraries(openclonk ${SDL_LIBRARY}) endif() ############################################################################ @@ -1287,6 +1286,11 @@ elseif(MINGW) endif() endif() +# SDL +if(HAVE_SDL) + target_link_libraries(openclonk ${SDL_LIBRARY}) +endif() + CHECK_INCLUDE_FILE_CXX(getopt.h HAVE_GETOPT_H) # TinyXML | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|
Clonkonaut (developer) 2015-02-13 18:20 |
The information you wanted is: Scope KEYSCOPE_Control (1) C4KeyScope Gamepad worked for me (Win 8.1) |
Armin (reporter) 2015-03-08 21:51 |
In OC 4.1 my gamepad works. (Even if I am not able to change the the suggested buttons.). In 5.1 not. Using Korora 21 Linux. |
Zapper (developer) 2015-12-25 22:37 |
We should postpone this to 8.0 as ingame gamepad support will not be ready for 7.0 anyway. We should probably disable gamepad in the options, though. |
Clonkonaut (developer) 2016-01-02 19:41 |
Moved to 8.0 |
Luchs (administrator) 2016-05-01 20:35 |
Gamepad should now work equally well (or badly) on all platforms, as SDL is now used everywhere. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2015-02-13 09:08 | Caesar | New Issue | |
2015-02-13 18:20 | Clonkonaut | Note Added: 0003496 | |
2015-03-08 21:51 | Armin | Note Added: 0003525 | |
2015-10-16 00:33 | Sven2 | Target Version | => 7.0 |
2015-12-25 22:37 | Zapper | Note Added: 0004389 | |
2016-01-02 19:41 | Clonkonaut | Target Version | 7.0 => 8.0 |
2016-01-02 19:41 | Clonkonaut | Note Added: 0004445 | |
2016-01-02 19:41 | Clonkonaut | Status | new => acknowledged |
2016-05-01 20:35 | Luchs | Note Added: 0005092 | |
2016-05-01 20:35 | Luchs | Status | acknowledged => resolved |
2016-05-01 20:35 | Luchs | Fixed in Version | => 8.0 |
2016-05-01 20:35 | Luchs | Resolution | open => fixed |
2016-05-01 20:35 | Luchs | Assigned To | => Luchs |