Commit graph

12 commits

Author SHA1 Message Date
Marc Chapman 9820780d1c Fixes a crash that occurs on linux headless servers 2019-02-26 14:47:02 +00:00
OTHGMars 4fd6dfeaf0 Adds support for SDL joystick and game controllers. 2019-01-10 20:09:05 -05:00
OTHGMars b8c711faae Fills in monitor functions in PlatformWindowManagerSDL
Adds the sdl implementation for all used PlatformWindowManager monitor functions. [This unit test](https://github.com/GarageGames/Torque3D/blob/development/Engine/source/windowManager/test/windowManagerTest.cpp#L28) will now pass for the SDL platform. Here is the equivalent in TorqueScript to test the functions via the Canvas object:```//Canvas.listDisplays();
function Canvas::listDisplays(%this)
{
   %count = %this.getMonitorCount();
   echo(%count SPC "monitor(s) detected.");
   for (%i = 0; %i < %count; %i++)
   {
      echo("Monitor #" @ (%i + 1) SPC %this.getMonitorName(%i) @ ": " @ %this.getMonitorRect(%i));
   }
}```
2018-11-24 03:12:07 -05:00
Areloch 49d109aa6b Enables SDL's ability to drag and drop files onto the game window and have it call back into script for handling. 2017-09-23 15:43:09 -05:00
Azaezel b4c2906581 expanded debug reporting for SDL_Init 2017-06-13 20:24:03 -05:00
Areloch f02d0d6c4e Hooks the splash window code up to the same image loading code as the icon code, and also adds a check if it tries to load a BMP for either(this is a bad format and really shouldn't be used for pretty much anything).
Also includes a icon for the templates.
2017-01-16 00:09:55 -06:00
Areloch 170cdadf60 Fixes window icons with SDL, hooking it through the var $Core::windowIcon as the path.
Also adjusted the splash window icon to use the var $Core::splashWindowImage for it's path.
2016-12-22 00:52:34 -06:00
Jeff Hutchinson f6b8ef126d fix SDL text events from generating a ~ key when opening the console 2016-12-11 13:53:11 -05:00
Areloch 6f72c7b119 Implements the splash screen window to the SDL platform stuff. 2016-08-27 17:47:03 -05:00
Azaezel 4a8f6737b6 Mouse wheel check has to occur before mouse motion. Apparently the one is a subset of the other. also thanks @dottools for the proper codeline. 2015-07-29 20:36:33 -05:00
Azaezel 06f6819d63 sdl2 mouse wheel scrolling rev1 2015-07-29 11:24:48 -05:00
LuisAntonRebollo aa35157eef PlatformSDL implementation. 2015-01-19 01:17:37 +01:00