Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Add SetLightColor method to IInputDevice interface

Hey there at Epic,

I have a suggestion which I would like to make in this post first. I don't know if I tagged everything correct, so sorry if not.

I would like to suggest to add a "SetLightColor(FColor)" method to the "IInputDevice" interface.

Now let me explain, why! Recently, we were granted access to the PS4 section and we want to support most features of the DS4 controller on the Win64 build of our game, too. This includes the light bar. This feature, however, doesn't work.

I noticed that there was a method in the APlayerController-Class already, which did nothing but simply forward the call to the IInputInterface-Classes SetLightColor-Method.

For Windows however, this method simply does nothing.

Now, there is the WinDualShock plugin, which works for most features, but not the light bar. And while it would be relatively easy to support the call, I can't without changing the engine. I could now:

Add a SetLightColor(FColor) method to the IInputDevice method, which in my oppinion would be the best solution I could think of, because I know you are permitted to give the majority access to Sony DS4 libraries. And with this change, you could support the lightbar in the WinDualShock plugin, without having an impact on engine users without PS4 access.

Or I could modify the FWindowsApplication class to embed a PS4Controllers object (similar to what the plugin does) and implement it there (this would be a lot of work and could not be distributed to non-ps4-engine-users).

So... I am asking you to change this, because I think it would be useful and I realize that every implementation of IInputDevice would have to be adjusted. So this would mean quiet some class changes (although almost every other implementation would simply just add an empty method there), and I would not want to apply these changes after every UE4 upgrade.

Would this be possible?

Hope to hear back from you. I would also be willing to provide these changes in a pull request on the official repository if approved by you.

Product Version: UE 4.11
more ▼

asked Jun 13 '16 at 01:38 AM in C++ Programming

avatar image

173 14 20 168

(comments are locked)
10|2000 characters needed characters left

The question has been closed Jan 15 '17 at 10:15 PM by Kyoril for the following reason:

Manually modified source code of the plugin, which is not as clean as it could have been but works

0 answers: sort voted first

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question