..:: PCSX2 Forums ::..

Full Version: DS4Windows -- yet another DualShock 4 driver! (No longer under active development)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Version 10.5, update live
Support for Left/Right Shift, Control, Alt in macros
Better support of Tab and media keys (note: media keys can not be held between actions)
Option to disconnect controller from BT if stopping/closing DS4Windows
Spelling fixes
Start of support for other languages, starting with very barebones support for Spanish, If anyone can help with translations of your language, please PM me here with translations for as much text as you can. Here is a link to all the text that appears in DS4Windows in English: https://docs.google.com/document/d/1Tnk9...sp=sharing
Can you add 'Fn' key (laptops) to the keyboard?

Checking Disconnect from BT if stopping/closing prevents bluetooth connection if you haven't turned it on yet.
(06-18-2014, 08:11 PM)shinra358 Wrote: [ -> ]Can you add 'Fn' key (laptops) to the keyboard?

Checking Disconnect from BT if stopping/closing prevents bluetooth connection if you haven't turned it on yet.

Fn keys are not recognized as keyboard standard codes and utilized a reserve pool of scan codes, meaning Fn keys do not send the same scan codes from brand to brand because they are typically only used for hardware specific software such as WiFi enabling/disabling Screen brightness etc etc. If you are tying to access extended keys that compact keyboards hide with Fn keys such as some number pads and some additional F keys like F11 and F12, you do not need to simulate the Fn key for this, only the actual F11 or F12 as it will send the proper scan code regardless of your actual KB. If you are trying to access a OEM software trigger do some research on the exe as they usually have command line args u can pass to enable WiFi etc, once you know this you can create a shortcut with these arge then assign the shortcut a normal KB hotkey such as Alt-F1 which in turn can be accessed by macro.
(06-18-2014, 08:11 PM)shinra358 Wrote: [ -> ]Checking Disconnect from BT if stopping/closing prevents bluetooth connection if you haven't turned it on yet.

Since jheb already covered the first part (thanks),

Could you elaborate on what you mean? With it checked, and whether DS4Windows has started the driver or stopped it, I was able to connect the controller without a problem.

I don't see why you wouldn't be able to reconnect BT after stopping it, as driver stops.
(06-18-2014, 08:36 PM)Jays2Kings Wrote: [ -> ]Since jheb already covered the first part (thanks),

Could you elaborate on what you mean? With it checked, and whether DS4Windows has started the driver or stopped it, I was able to connect the controller without a problem.

I don't see why you wouldn't be able to reconnect BT after stopping it, as driver stops.

Checked 'Disconnect from BT when stopping' option > Presses PS button > Connecting... > Disconnected

BT never connects to the controller with this option checked.


-LOG-

Connecting:
Found Controller: A4:15:66:87:48:13 (BT)
Controller 1 is using Profile "Default"

Immediately looses connection afterwards:
Controller A4:15:66:87:48:13 was removed or lost connection
Controller A4:15:66:87:48:13 was removed or lost connection


Option unchecked is fine.
(06-18-2014, 09:18 PM)shinra358 Wrote: [ -> ]Checked 'Disconnect from BT when stopping' option > Presses PS button > Connecting... > Disconnected

BT never connects to the controller with this option checked.


-LOG-

Connecting:
Found Controller: A4:15:66:87:48:13 (BT)
Controller 1 is using Profile "Default"

Immediately looses connection afterwards:
Controller A4:15:66:87:48:13 was removed or lost connection
Controller A4:15:66:87:48:13 was removed or lost connection


Option unchecked is fine.

I figured out why, it's fixed it in the zip below.
Ya got it. For BT Plugged mode with this option, paired 'white light' still stays on. May want to change that light to off when pressing stop with the option checked only.
(06-18-2014, 10:01 PM)shinra358 Wrote: [ -> ]Ya got it. For BT Plugged mode with this option, paired 'white light' still stays on. May want to change that light to off when pressing stop with the option checked only.

Glad to see it's working, I'll think about that too.
Ran into a situation where the program crashes:

Program window not minimized > Profile Tab in Edit Mode > BT Plugged Mode > Wait for light to idly time out > Press a button to get the light to turn back on > Unplug controller > Press PSbutton + Options button to turn off bluetooth > Crash

EventViewer [Application]

Code:
Event 100, Application Error:
Faulting application name: DS4Windows.exe, version: 1.3.0.0, time stamp: 0x53a1ebbd
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x5315a05a
Exception code: 0xe0434352
Fault offset: 0x000000000000940d
Faulting process id: 0x1168
Faulting application start time: 0x01cf8b3091428bc6
Faulting application path: E:\Program Files (x86)\Sony DualShock 4 Controller Driver\DS4Windows - J2K\DS4Windows.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: c732f498-f726-11e3-9989-3c77e6684f58

Code:
Event 1026, .Net Runtime:
Application: DS4Windows.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IndexOutOfRangeException
Stack:
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()


What might solve it (or have a user not experience it):
-Take profile out of edit mode (without autosaving settings) once tab is switched (would solve keyboard being summoned when in other tabs and edit button on controller tab doing nothing when profile is already in edit mode on profiles tab too)
(06-18-2014, 10:44 PM)shinra358 Wrote: [ -> ]Ran into a situation where the program crashes:

Program window not minimized > Profile Tab in Edit Mode > BT Plugged Mode > Wait for light to idly time out > Press a button to get the light to turn back on > Unplug controller > Press PSbutton + Options button to turn off bluetooth > Crash

EventViewer [Application]

Code:
Event 100, Application Error:
Faulting application name: DS4Windows.exe, version: 1.3.0.0, time stamp: 0x53a1ebbd
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x5315a05a
Exception code: 0xe0434352
Fault offset: 0x000000000000940d
Faulting process id: 0x1168
Faulting application start time: 0x01cf8b3091428bc6
Faulting application path: E:\Program Files (x86)\Sony DualShock 4 Controller Driver\DS4Windows - J2K\DS4Windows.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: c732f498-f726-11e3-9989-3c77e6684f58

Code:
Event 1026, .Net Runtime:
Application: DS4Windows.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IndexOutOfRangeException
Stack:
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()


What might solve it (or have a user not experience it):
-Take profile out of edit mode (without autosaving settings) once tab is switched (would solve keyboard being summoned when in other tabs and edit button on controller tab doing nothing when profile is already in edit mode on profiles tab too)

I tried to replicate that error, but couldn't, thought I did try what you suggested:
Input by DS4 in profile settings now turns off when off that tab
Able to use edit button to open that profile, even when profile settings are open.