Comments (7)
I didn't test it with Unity 2019, maybe they've changed something.
from unity-raw-input.
Afaik, I've used this extension with Unity 2018.3 the last time and it was working fine. Try updating to the latest 2018 LTS release (2018.2 can't be LTS, it should be 2018.4.x).
from unity-raw-input.
I think this extension is great even if it sticked to Windows only.
But for some reason Unity 2018.2.x is crashing a lot while using RawInput.
Could you reply on that please?
Try to Start(true) then subscribe on events. then press any key. If that's ok - restart the game mode and repeat. For me it crashes like 1 out of 5.
I tried 2018.2.10 and 2018.2.17 (LTS)
from unity-raw-input.
@elringus so I've gone back and installed 2018.4.17f1 which is LTS.
I am having the same problem with the RawInput firing with everything
here's the code:
`
void Start()
{
var workInBackground = true;
RawKeyInput.Start(workInBackground);
RawKeyInput.OnKeyUp += HandleKeyUp;
RawKeyInput.OnKeyDown += HandleKeyDown;
}
// Update is called once per frame
void Update()
{
}
private void HandleKeyUp(RawKey Up)
{
Debug.Log("Button_Up");
}
private void HandleKeyDown(RawKey Up)
{
Debug.Log("Button_Down");
}
private void OnDisable()
{
RawKeyInput.OnKeyUp -= HandleKeyUp;
RawKeyInput.OnKeyDown -= HandleKeyDown;
}
`
Am I doing this wrong?
from unity-raw-input.
@elringus Im sorry. 2018.4.17 LTS of course
@ImTheDrift I think this behavior is totally intentional
here's a little workaround I made for you to check inputs and combinations. based on RawInput
InputReceiver.txt
@elringus could you please check it too? Is this my extension makes unity crash sometimes?
I repeat now Unity 2018.4.17 LTS, previously 2018.4.10 LTS
from unity-raw-input.
@Deroido Unfortunately, I don't have time to work on this. Try checking the crash logs, there could be some hints why it happens.
from unity-raw-input.
Tested on Unity 2019.4 LTS, works great!
from unity-raw-input.
Related Issues (20)
- Closing HOT 1
- Hide the app from taskbar HOT 1
- working on Android? HOT 1
- Any leads on how to add Joystick Inputs? HOT 2
- need il2cpp support HOT 1
- Get the real value behind OEM[1..10] HOT 1
- Issues with 2020 version of unity HOT 2
- Get input from mouse HOT 1
- How can I read the Mouse HOT 1
- Device? HOT 1
- rawInputBinding HOT 3
- Translating from Unity's input system to RawInput HOT 1
- One more raw mouse button request HOT 3
- Add raw mouse button input functionality HOT 3
- Severe mouse slowdown/latency when my Unity app runs, but only on one computer, not another HOT 10
- Use generic Enum.IsDefined when Unity supports .NET 5
- Does UnityRawInput work in a hololens uwp application? HOT 1
- Unity3d new Input System HOT 5
- Input not working when out of focus HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-raw-input.