platform/core/csapi/opentk.git
11 years ago[Input] Implemented MappedGamePadDriver.GetCapabilities()
thefiddler [Thu, 2 Jan 2014 00:13:20 +0000 (01:13 +0100)]
[Input] Implemented MappedGamePadDriver.GetCapabilities()

11 years ago[Input] Added ability to parse SDL configuration db strings
thefiddler [Thu, 2 Jan 2014 00:07:21 +0000 (01:07 +0100)]
[Input] Added ability to parse SDL configuration db strings

11 years ago[Input] Added configuration db for GamePads
thefiddler [Thu, 2 Jan 2014 00:06:47 +0000 (01:06 +0100)]
[Input] Added configuration db for GamePads

The database is based on the SDL bindings found at
https://hg.libsdl.org/SDL/file/b744b3f8754b/src/joystick/SDL_gamecontrol
lerdb.h

11 years ago[Input] Added IJoystickDriver2.GetGuid() API
thefiddler [Tue, 31 Dec 2013 13:09:17 +0000 (14:09 +0100)]
[Input] Added IJoystickDriver2.GetGuid() API

11 years ago[SDL2] Added JoystickGetGUID method
thefiddler [Tue, 31 Dec 2013 13:08:28 +0000 (14:08 +0100)]
[SDL2] Added JoystickGetGUID method

11 years ago[SDL2] Add compile-time check for SDL2 GameController vs MappedGamePadDriver
thefiddler [Tue, 31 Dec 2013 10:46:40 +0000 (11:46 +0100)]
[SDL2] Add compile-time check for SDL2 GameController vs MappedGamePadDriver

11 years ago[Input] Removed unnecessary #region
thefiddler [Tue, 31 Dec 2013 00:02:07 +0000 (01:02 +0100)]
[Input] Removed unnecessary #region

11 years ago[Input] Renamed GamePadMapping to GamePadMap
thefiddler [Tue, 31 Dec 2013 00:01:52 +0000 (01:01 +0100)]
[Input] Renamed GamePadMapping to GamePadMap

11 years ago[SDL2] Fixed joystick/controller hotplugging support
thefiddler [Mon, 30 Dec 2013 16:22:45 +0000 (17:22 +0100)]
[SDL2] Fixed joystick/controller hotplugging support

11 years ago[SDL2] Fixed GameControllerButton to Buttons translation
thefiddler [Mon, 30 Dec 2013 16:15:49 +0000 (17:15 +0100)]
[SDL2] Fixed GameControllerButton to Buttons translation

11 years ago[SDL2] Fix issue where changes to mutable struct were lost
thefiddler [Mon, 30 Dec 2013 16:09:20 +0000 (17:09 +0100)]
[SDL2] Fix issue where changes to mutable struct were lost

11 years ago[SDL2] Explicitly enable joystick and gamepad events
thefiddler [Mon, 30 Dec 2013 16:08:42 +0000 (17:08 +0100)]
[SDL2] Explicitly enable joystick and gamepad events

11 years ago[Input] Buttons should have [Flags] attribute
thefiddler [Mon, 30 Dec 2013 15:07:06 +0000 (16:07 +0100)]
[Input] Buttons should have [Flags] attribute

11 years ago[SDL2] Fixed joystick hotplugging
Stefanos A. [Mon, 30 Dec 2013 14:24:48 +0000 (15:24 +0100)]
[SDL2] Fixed joystick hotplugging

SDL2 uses a weird system of device ids and instance ids to report
joystick events, where the ADDED event uses a device id and the rest use
instance ids.

The SDL2 joystick driver is now fixed to correctly distinguish between
the two, which fixes hotplugging support for joystick devices.

11 years ago[SDL2] Fixed mapping of instance ids to device ids
thefiddler [Mon, 30 Dec 2013 13:57:28 +0000 (14:57 +0100)]
[SDL2] Fixed mapping of instance ids to device ids

11 years ago[Input] Added missing closing brace in ToString() message
thefiddler [Mon, 30 Dec 2013 13:56:22 +0000 (14:56 +0100)]
[Input] Added missing closing brace in ToString() message

11 years ago[Input] Fixed incorrect variable name
thefiddler [Mon, 30 Dec 2013 12:49:26 +0000 (13:49 +0100)]
[Input] Fixed incorrect variable name

11 years ago[SDL] Use TranslateAxis() to decode ControllerAxisEvent
thefiddler [Mon, 30 Dec 2013 12:42:37 +0000 (13:42 +0100)]
[SDL] Use TranslateAxis() to decode ControllerAxisEvent

SDL GameControllerAxis and GamePadAxes are not interchangeable. The
driver will now correctly interpret incoming SDL messages and update
the GamePadState for the relevant axis.

11 years ago[Input] Fixed GamePadState.SetAxis() implementation
thefiddler [Mon, 30 Dec 2013 12:39:43 +0000 (13:39 +0100)]
[Input] Fixed GamePadState.SetAxis() implementation

GamePadState.SetAxis() receives a GamePadAxes enumeration, which is a
bitmask of the axes we wish to set. SetAxis now correctly decodes the
bitmask to apply the values we are interested in.

11 years agoIsButtonBind should check for buttons, not axes
thefiddler [Wed, 25 Dec 2013 00:47:27 +0000 (01:47 +0100)]
IsButtonBind should check for buttons, not axes

11 years agoImplemented SDL IJoystickDriver2 and IGamePadDriver
thefiddler [Tue, 24 Dec 2013 18:15:23 +0000 (19:15 +0100)]
Implemented SDL IJoystickDriver2 and IGamePadDriver

11 years agoAdded GameControllerGetBind APIs
thefiddler [Tue, 24 Dec 2013 18:14:54 +0000 (19:14 +0100)]
Added GameControllerGetBind APIs

11 years agoRemoved duplicate button types
thefiddler [Tue, 24 Dec 2013 18:14:35 +0000 (19:14 +0100)]
Removed duplicate button types

11 years agoMerge branch 'gamepad' of https://github.com/opentk/opentk into gamepad
thefiddler [Tue, 24 Dec 2013 16:18:20 +0000 (17:18 +0100)]
Merge branch 'gamepad' of https://github.com/opentk/opentk into gamepad

11 years agoUse IGamePadDriver through MappedGamePadDriver
thefiddler [Tue, 24 Dec 2013 16:16:16 +0000 (17:16 +0100)]
Use IGamePadDriver through MappedGamePadDriver

11 years agoImproved ToString implementation
Stefanos A [Tue, 24 Dec 2013 16:06:39 +0000 (17:06 +0100)]
Improved ToString implementation

11 years agoFixed WinMM offsets for IJoystickDevice2
Stefanos A [Tue, 24 Dec 2013 15:42:48 +0000 (16:42 +0100)]
Fixed WinMM offsets for IJoystickDevice2

11 years agoImproved WinMMJoystickDriver hotplugging behavior
Stefanos A [Tue, 24 Dec 2013 14:51:25 +0000 (15:51 +0100)]
Improved WinMMJoystickDriver hotplugging behavior

11 years agoAdded state output for OpenTK.Input.Joystick
Stefanos A [Tue, 24 Dec 2013 14:01:33 +0000 (15:01 +0100)]
Added state output for OpenTK.Input.Joystick

11 years agoImplemented structural equality
Stefanos A [Tue, 24 Dec 2013 14:01:10 +0000 (15:01 +0100)]
Implemented structural equality

11 years agoConnected XInput driver
Stefanos A [Tue, 24 Dec 2013 13:24:42 +0000 (14:24 +0100)]
Connected XInput driver

11 years agoWinMMJoystick implements IJoystickDriver2
Stefanos A [Tue, 24 Dec 2013 13:24:29 +0000 (14:24 +0100)]
WinMMJoystick implements IJoystickDriver2

WinMM is optimized for general joystick use, not for the canonical
GamePad layout. Instead of exposing IGamePadDriver directly, it should
expose IJoystickDriver2 and use a mapping driver to get GamePad support.

11 years agoAdded MappedGamePadDriver skeleton implementation
Stefanos A [Tue, 24 Dec 2013 13:22:03 +0000 (14:22 +0100)]
Added MappedGamePadDriver skeleton implementation

11 years agoImplements JoystickState and Capabilities setters
Stefanos A [Tue, 24 Dec 2013 13:21:37 +0000 (14:21 +0100)]
Implements JoystickState and Capabilities setters

11 years agoNo reason to comment out #region License
Stefanos A [Tue, 24 Dec 2013 11:52:57 +0000 (12:52 +0100)]
No reason to comment out #region License

11 years agoAdded internal GamePadMapping class
Stefanos A [Tue, 24 Dec 2013 11:48:15 +0000 (12:48 +0100)]
Added internal GamePadMapping class

11 years agoImplemented thumbsticks and trigger caps
Stefanos A [Tue, 24 Dec 2013 11:47:09 +0000 (12:47 +0100)]
Implemented thumbsticks and trigger caps

11 years agoAdded IJoystickDevice2 interface
Stefanos A [Tue, 24 Dec 2013 02:16:32 +0000 (03:16 +0100)]
Added IJoystickDevice2 interface

11 years agoImplemented initial XInput IGamePadDriver
Stefanos A [Tue, 24 Dec 2013 00:37:34 +0000 (01:37 +0100)]
Implemented initial XInput IGamePadDriver

11 years agoAdded missing left/right triggers
Stefanos A [Tue, 24 Dec 2013 00:36:44 +0000 (01:36 +0100)]
Added missing left/right triggers

11 years agoRemoved all instances of refresh_text
Stefanos A [Mon, 23 Dec 2013 23:15:43 +0000 (00:15 +0100)]
Removed all instances of refresh_text

11 years agoImplemented GamePad Capabilities and Type
Stefanos A [Mon, 23 Dec 2013 23:15:28 +0000 (00:15 +0100)]
Implemented GamePad Capabilities and Type

11 years agoRefresh text continuously
Stefanos A [Mon, 23 Dec 2013 21:00:10 +0000 (22:00 +0100)]
Refresh text continuously

11 years agoInitial implementation of GamePadTriggers
Stefanos A [Mon, 23 Dec 2013 19:30:58 +0000 (20:30 +0100)]
Initial implementation of GamePadTriggers

11 years agoEnabled HIDInput IGamePadDriver implementation
thefiddler [Mon, 23 Dec 2013 18:19:41 +0000 (19:19 +0100)]
Enabled HIDInput IGamePadDriver implementation

11 years agoImplemented GamePad API (WIP)
Stefanos A [Mon, 23 Dec 2013 00:50:25 +0000 (01:50 +0100)]
Implemented GamePad API (WIP)

11 years agoRemoved unnecessary IsButtonValid method
Stefanos A [Mon, 23 Dec 2013 00:50:13 +0000 (01:50 +0100)]
Removed unnecessary IsButtonValid method

11 years agoDisplay start button in ToString()
Stefanos A [Mon, 23 Dec 2013 00:49:49 +0000 (01:49 +0100)]
Display start button in ToString()

11 years agoFixed rendering of joysticks and gamepads
Stefanos A [Mon, 23 Dec 2013 00:29:12 +0000 (01:29 +0100)]
Fixed rendering of joysticks and gamepads

Joysticks and gamepad states would overlap, causing some lines to be
unreadable. This is now fixed.

11 years agoMore robust handling of device add/remove events
Stefanos A [Sun, 22 Dec 2013 23:17:13 +0000 (00:17 +0100)]
More robust handling of device add/remove events

11 years agoFixed expansion of joysticks collection
Stefanos A [Sun, 22 Dec 2013 22:55:46 +0000 (23:55 +0100)]
Fixed expansion of joysticks collection

11 years agoLog errors in subsystem initialization
Stefanos A [Sun, 22 Dec 2013 22:55:28 +0000 (23:55 +0100)]
Log errors in subsystem initialization

11 years agoReuse Sdl2Factory.InputDriver in Sdl2NativeWindow
Stefanos A [Sun, 22 Dec 2013 22:54:55 +0000 (23:54 +0100)]
Reuse Sdl2Factory.InputDriver in Sdl2NativeWindow

11 years agoDelay joystick initialization until necessary
Stefanos A [Sun, 22 Dec 2013 22:13:21 +0000 (23:13 +0100)]
Delay joystick initialization until necessary

11 years agoAdded SDL_InitSubSystem method
Stefanos A [Sun, 22 Dec 2013 22:12:53 +0000 (23:12 +0100)]
Added SDL_InitSubSystem method

11 years agoFixed x/y axis mixup.
Stefanos A [Sun, 22 Dec 2013 21:47:50 +0000 (22:47 +0100)]
Fixed x/y axis mixup.

11 years agoCleaned up using directives
Stefanos A [Sun, 22 Dec 2013 21:34:34 +0000 (22:34 +0100)]
Cleaned up using directives

11 years agoAdded missing newline
Stefanos A [Sun, 22 Dec 2013 21:32:24 +0000 (22:32 +0100)]
Added missing newline

11 years agoImplemented GamePadThumbSticks
Stefanos A [Sun, 22 Dec 2013 21:32:18 +0000 (22:32 +0100)]
Implemented GamePadThumbSticks

11 years agoAdded state information for GamePads
Stefanos A [Sun, 22 Dec 2013 21:07:40 +0000 (22:07 +0100)]
Added state information for GamePads

11 years agoMore compact string representation
Stefanos A [Sun, 22 Dec 2013 21:07:30 +0000 (22:07 +0100)]
More compact string representation

11 years agoImplemented IEquatable<> interface
Stefanos A [Sun, 22 Dec 2013 21:01:04 +0000 (22:01 +0100)]
Implemented IEquatable<> interface

11 years agoImplemented new GamePad interface (WIP)
thefiddler [Thu, 19 Dec 2013 15:28:20 +0000 (16:28 +0100)]
Implemented new GamePad interface (WIP)

11 years agoImplemented GamePadButtons
thefiddler [Thu, 19 Dec 2013 15:27:57 +0000 (16:27 +0100)]
Implemented GamePadButtons

11 years agoUpdated internal IGamePadDriver interface
thefiddler [Thu, 19 Dec 2013 15:27:26 +0000 (16:27 +0100)]
Updated internal IGamePadDriver interface

11 years agoImplemented GameController API bindings
thefiddler [Thu, 19 Dec 2013 09:42:12 +0000 (10:42 +0100)]
Implemented GameController API bindings

11 years agoUse SDL2 event API for joystick devices
thefiddler [Wed, 18 Dec 2013 16:16:29 +0000 (17:16 +0100)]
Use SDL2 event API for joystick devices

11 years agoImplemented SDL2 Joystick and GameController events
thefiddler [Wed, 18 Dec 2013 14:50:59 +0000 (15:50 +0100)]
Implemented SDL2 Joystick and GameController events

11 years agoUse IGamePadDriver through MappedGamePadDriver
thefiddler [Tue, 24 Dec 2013 16:16:16 +0000 (17:16 +0100)]
Use IGamePadDriver through MappedGamePadDriver

11 years agoImproved ToString implementation
Stefanos A. [Tue, 24 Dec 2013 16:06:39 +0000 (17:06 +0100)]
Improved ToString implementation

11 years agoFixed WinMM offsets for IJoystickDevice2
Stefanos A. [Tue, 24 Dec 2013 15:42:48 +0000 (16:42 +0100)]
Fixed WinMM offsets for IJoystickDevice2

11 years agoImproved WinMMJoystickDriver hotplugging behavior
Stefanos A. [Tue, 24 Dec 2013 14:51:25 +0000 (15:51 +0100)]
Improved WinMMJoystickDriver hotplugging behavior

11 years agoAdded state output for OpenTK.Input.Joystick
Stefanos A. [Tue, 24 Dec 2013 14:01:33 +0000 (15:01 +0100)]
Added state output for OpenTK.Input.Joystick

11 years agoImplemented structural equality
Stefanos A. [Tue, 24 Dec 2013 14:01:10 +0000 (15:01 +0100)]
Implemented structural equality

11 years agoConnected XInput driver
Stefanos A. [Tue, 24 Dec 2013 13:24:42 +0000 (14:24 +0100)]
Connected XInput driver

11 years agoWinMMJoystick implements IJoystickDriver2
Stefanos A. [Tue, 24 Dec 2013 13:24:29 +0000 (14:24 +0100)]
WinMMJoystick implements IJoystickDriver2

WinMM is optimized for general joystick use, not for the canonical
GamePad layout. Instead of exposing IGamePadDriver directly, it should
expose IJoystickDriver2 and use a mapping driver to get GamePad support.

11 years agoAdded MappedGamePadDriver skeleton implementation
Stefanos A. [Tue, 24 Dec 2013 13:22:03 +0000 (14:22 +0100)]
Added MappedGamePadDriver skeleton implementation

11 years agoImplements JoystickState and Capabilities setters
Stefanos A. [Tue, 24 Dec 2013 13:21:37 +0000 (14:21 +0100)]
Implements JoystickState and Capabilities setters

11 years agoNo reason to comment out #region License
Stefanos A. [Tue, 24 Dec 2013 11:52:57 +0000 (12:52 +0100)]
No reason to comment out #region License

11 years agoAdded internal GamePadMapping class
Stefanos A. [Tue, 24 Dec 2013 11:48:15 +0000 (12:48 +0100)]
Added internal GamePadMapping class

11 years agoImplemented thumbsticks and trigger caps
Stefanos A. [Tue, 24 Dec 2013 11:47:09 +0000 (12:47 +0100)]
Implemented thumbsticks and trigger caps

11 years agoAdded IJoystickDevice2 interface
Stefanos A. [Tue, 24 Dec 2013 02:16:32 +0000 (03:16 +0100)]
Added IJoystickDevice2 interface

11 years agoImplemented initial XInput IGamePadDriver
Stefanos A. [Tue, 24 Dec 2013 00:37:34 +0000 (01:37 +0100)]
Implemented initial XInput IGamePadDriver

11 years agoAdded missing left/right triggers
Stefanos A. [Tue, 24 Dec 2013 00:36:44 +0000 (01:36 +0100)]
Added missing left/right triggers

11 years agoRemoved all instances of refresh_text
Stefanos A. [Mon, 23 Dec 2013 23:15:43 +0000 (00:15 +0100)]
Removed all instances of refresh_text

11 years agoImplemented GamePad Capabilities and Type
Stefanos A. [Mon, 23 Dec 2013 23:15:28 +0000 (00:15 +0100)]
Implemented GamePad Capabilities and Type

11 years agoRefresh text continuously
Stefanos A. [Mon, 23 Dec 2013 21:00:10 +0000 (22:00 +0100)]
Refresh text continuously

11 years agoRemoved unused constructors
thefiddler [Mon, 23 Dec 2013 20:43:17 +0000 (21:43 +0100)]
Removed unused constructors

11 years agoAdded Compositing and FrameworkScaled flags
thefiddler [Mon, 23 Dec 2013 20:42:16 +0000 (21:42 +0100)]
Added Compositing and FrameworkScaled flags

11 years agoFixed OpenTK/Carbon key repeat behavior to match the other backends
thefiddler [Mon, 23 Dec 2013 19:40:27 +0000 (20:40 +0100)]
Fixed OpenTK/Carbon key repeat behavior to match the other backends

11 years agoMerge branch 'gamepad' of https://github.com/opentk/opentk into gamepad
Stefanos A [Mon, 23 Dec 2013 19:31:02 +0000 (20:31 +0100)]
Merge branch 'gamepad' of https://github.com/opentk/opentk into gamepad

11 years agoInitial implementation of GamePadTriggers
Stefanos A. [Mon, 23 Dec 2013 19:30:58 +0000 (20:30 +0100)]
Initial implementation of GamePadTriggers

11 years agoFixed GameWindow.{Bounds, Location, Size, X, Y} setters on OpenTK/Carbon
thefiddler [Mon, 23 Dec 2013 19:21:02 +0000 (20:21 +0100)]
Fixed GameWindow.{Bounds, Location, Size, X, Y} setters on OpenTK/Carbon

11 years agoImplemented KeyDown & KeyUp events on OpenTK/Carbon
thefiddler [Mon, 23 Dec 2013 18:32:16 +0000 (19:32 +0100)]
Implemented KeyDown & KeyUp events on OpenTK/Carbon

11 years agoEnabled HIDInput IGamePadDriver implementation
thefiddler [Mon, 23 Dec 2013 18:19:41 +0000 (19:19 +0100)]
Enabled HIDInput IGamePadDriver implementation

11 years agoImplemented GamePad API (WIP)
Stefanos A. [Mon, 23 Dec 2013 00:50:25 +0000 (01:50 +0100)]
Implemented GamePad API (WIP)

11 years agoRemoved unnecessary IsButtonValid method
Stefanos A. [Mon, 23 Dec 2013 00:50:13 +0000 (01:50 +0100)]
Removed unnecessary IsButtonValid method

11 years agoDisplay start button in ToString()
Stefanos A. [Mon, 23 Dec 2013 00:49:49 +0000 (01:49 +0100)]
Display start button in ToString()

11 years agoFixed rendering of joysticks and gamepads
Stefanos A. [Mon, 23 Dec 2013 00:29:12 +0000 (01:29 +0100)]
Fixed rendering of joysticks and gamepads

Joysticks and gamepad states would overlap, causing some lines to be
unreadable. This is now fixed.

11 years agoMore robust handling of device add/remove events
Stefanos A. [Sun, 22 Dec 2013 23:17:13 +0000 (00:17 +0100)]
More robust handling of device add/remove events