Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/4.17-update'
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Aug 18, 2017
2 parents 393f7ba + b57d5ab commit 35ffcad
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HydraPlugin.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"FileVersion" : 3,
"FriendlyName" : "Razer Hydra Plugin",
"Version" : 1,
"VersionName" : "0.9.6",
"VersionName" : "1.0.0",
"CreatedBy" : "Getnamo",
"CreatedByURL" : "http://getnamo.com",
"DocsURL" : "https://github.com/getnamo/hydra-ue4",
"Description" : "Unofficial plugin for the Razer Hydra Motion Controller",
"Category" : "Input Devices",
"Category": "Input Devices",
"EnabledByDefault": true,
"Modules" :
[
{
Expand Down
32 changes: 32 additions & 0 deletions Source/HydraPlugin/Private/FHydraPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,39 @@
#include "HydraControllerComponent.h"
#include "HydraUtility.h"

#include "PreWindowsApi.h"
#include "AllowWindowsPlatformTypes.h"
#include "AllowWindowsPlatformAtomics.h"

#pragma warning(push)
#pragma warning(disable: 4191)
#pragma warning(disable: 4996)

#ifndef DeleteFile
#define DeleteFile DeleteFileW
#endif
#ifndef MoveFile
#define MoveFile MoveFileW
#endif

#ifndef LoadString
#define LoadString LoadStringW
#endif

#ifndef GetMessage
#define GetMessage GetMessageW
#endif

#include <iostream>
#include <stdexcept>
#include <vector>
#include <sixense.h>
#include <windows.h>

#include "HideWindowsPlatformAtomics.h"
#include "HideWindowsPlatformTypes.h"
#include "PostWindowsApi.h"

#define LOCTEXT_NAMESPACE "HydraPlugin"
#define HYDRA_HISTORY_MAX 3 //frame history for data, shrunken to minimum 3 frame history for acceleration
DEFINE_LOG_CATEGORY_STATIC(HydraPluginLog, Log, All);
Expand Down Expand Up @@ -219,6 +246,11 @@ class FHydraController : public IInputDevice, public IMotionController

TArray<FHydraKeyMap> LeftKeyMap;
TArray<FHydraKeyMap> RightKeyMap;

virtual FName IMotionController::GetMotionControllerDeviceTypeName(void) const override
{
return TEXT("Razer Hydra");
}

void AddInputMappingKeys()
{
Expand Down

0 comments on commit 35ffcad

Please sign in to comment.