Giter Club home page Giter Club logo

Comments (7)

elringus avatar elringus commented on June 11, 2024 1

I didn't test it with Unity 2019, maybe they've changed something.

from unity-raw-input.

elringus avatar elringus commented on June 11, 2024 1

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.

Deroido avatar Deroido commented on June 11, 2024

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.

ImTheDrift avatar ImTheDrift commented on June 11, 2024

@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.

Deroido avatar Deroido commented on June 11, 2024

@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.

elringus avatar elringus commented on June 11, 2024

@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.

oktomus avatar oktomus commented on June 11, 2024

Tested on Unity 2019.4 LTS, works great!

from unity-raw-input.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.