Changeset 1361
- Timestamp:
- May 10, 2012, 1:33:51 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile.am
r1358 r1361 23 23 $(nacl_sources) \ 24 24 $(sdl_sources) \ 25 $(d3d9_sources) \ 25 26 $(android_sources) \ 26 27 \ … … 52 53 platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h 53 54 55 d3d9_sources = \ 56 platform/xbox/xboxinput.cpp platform/xbox/xboxinput.h 57 54 58 if USE_NACL 55 59 nacl_sources = \ -
trunk/src/platform/sdl/sdlapp.cpp
r1241 r1361 25 25 #include "platform/sdl/sdlapp.h" 26 26 #include "platform/sdl/sdlinput.h" 27 #if defined USE_D3D9 28 # include "platform/d3d9/d3d9input.h" 29 #endif 27 30 28 31 #if defined USE_SDL && defined USE_D3D9 … … 87 90 88 91 /* Autoreleased objects */ 92 # if defined USE_D3D9 93 /* Prefer D3d9 for joysticks on Windows, because the X360 pads are not 94 * advertised with the proper number of axes. */ 95 new D3d9Input(); 96 # endif 89 97 new SdlInput(); 90 98 #endif -
trunk/src/platform/sdl/sdlinput.cpp
r1355 r1361 59 59 /* Blacklist HDAPS, it's not a real joystick */ 60 60 char const *name = SDL_JoystickName(i); 61 if (strstr(name, "HDAPS")) 61 if (strstr(name, "HDAPS") 62 # if !defined USE_D3D9 63 || strstr(name, "XBOX 360 For Windows") 64 # endif 65 || true) 62 66 { 63 67 SDL_JoystickClose(sdlstick); … … 70 74 71 75 /* It's possible to remap axes */ 72 if (strstr(name, "XBOX 360 For Windows")) 73 { 74 //stick->RemapAxis(4, 2); 75 //stick->RemapAxis(2, 4); 76 } 76 //stick->RemapAxis(4, 2); 77 //stick->RemapAxis(2, 4); 77 78 78 79 m_data->m_joysticks.Push(sdlstick, stick); -
trunk/win32/Lol.Vars.props
r1210 r1361 36 36 <D3d9Libs Condition="'$(Platform)'=='Win32'">$(DXSDK_DIR)\Lib\x86</D3d9Libs> 37 37 <D3d9Libs Condition="'$(Platform)'=='x64'">$(DXSDK_DIR)\Lib\x64</D3d9Libs> 38 <D3d9Deps Condition="'$(Configuration)'=='Release'">d3d9.lib;d3dx9.lib </D3d9Deps>39 <D3d9Deps Condition="'$(Configuration)'=='Debug'">d3d9.lib;d3dx9d.lib </D3d9Deps>38 <D3d9Deps Condition="'$(Configuration)'=='Release'">d3d9.lib;d3dx9.lib;xinput.lib</D3d9Deps> 39 <D3d9Deps Condition="'$(Configuration)'=='Debug'">d3d9.lib;d3dx9d.lib;xinput.lib</D3d9Deps> 40 40 41 41 <Win32Defines>HAVE_SDL_H;USE_SDL;USE_GDIPLUS;USE_D3D9</Win32Defines> -
trunk/win32/lolcore.vcxproj
r1358 r1361 109 109 <ClCompile Include="..\src\math\vector.cpp" /> 110 110 <ClCompile Include="..\src\platform.cpp" /> 111 <ClCompile Include="..\src\platform\d3d9\d3d9input.cpp" /> 111 112 <ClCompile Include="..\src\platform\sdl\sdlapp.cpp" /> 112 113 <ClCompile Include="..\src\platform\sdl\sdlinput.cpp" /> … … 168 169 <ClInclude Include="..\src\numeric.h" /> 169 170 <ClInclude Include="..\src\platform.h" /> 171 <ClInclude Include="..\src\platform\d3d9\d3d9input.h" /> 170 172 <ClInclude Include="..\src\platform\sdl\sdlapp.h" /> 171 173 <ClInclude Include="..\src\platform\sdl\sdlinput.h" /> -
trunk/win32/lolcore.vcxproj.filters
r1358 r1361 45 45 <UniqueIdentifier>{94992c0e-ebc5-4185-b766-323b06547dcf}</UniqueIdentifier> 46 46 </Filter> 47 <Filter Include="src\platform\d3d9"> 48 <UniqueIdentifier>{a914e15d-3201-467a-a9c9-d7c5244b13ee}</UniqueIdentifier> 49 </Filter> 47 50 </ItemGroup> 48 51 <ItemGroup> … … 206 209 <Filter>src\input</Filter> 207 210 </ClCompile> 211 <ClCompile Include="..\src\platform\d3d9\d3d9input.cpp"> 212 <Filter>src\platform\d3d9</Filter> 213 </ClCompile> 208 214 </ItemGroup> 209 215 <ItemGroup> … … 388 394 <Filter>src\input</Filter> 389 395 </ClInclude> 396 <ClInclude Include="..\src\platform\d3d9\d3d9input.h"> 397 <Filter>src\platform\d3d9</Filter> 398 </ClInclude> 390 399 </ItemGroup> 391 400 </Project>
Note: See TracChangeset
for help on using the changeset viewer.