playMaker

Author Topic: DeviceShakeEvent with new Input System  (Read 1555 times)

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
DeviceShakeEvent with new Input System
« on: February 26, 2022, 06:40:02 AM »
Looks like something is wrong when using only the new unity Input System (and not both); in fact the DeviceShakeEvent is not working anymore; is this expected and how to workaround this? Seems to affect also other Mouse Events...

Thanks for your help.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6913
    • jinxtergames
Re: DeviceShakeEvent with new Input System
« Reply #1 on: February 26, 2022, 11:33:00 AM »
Hi
Try adding "NEW_INPUT_SYSTEM_ONLY"
in player other settings



elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
Re: DeviceShakeEvent with new Input System
« Reply #2 on: February 26, 2022, 01:22:11 PM »
Thanks djaydino for the detailed infos.

I have added the define symbol but the problem is still here: the device shake event does nothing, the mouse pick event also doesn't work. If i remove the Define and put "Both" in the Active Input Handling, these events works just fine.

Update to playmaker 1.9.5f2 only didn't fix either

Am i missing other settings? Never tweaked Input System Package setting if this is matter.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6913
    • jinxtergames
Re: DeviceShakeEvent with new Input System
« Reply #3 on: February 26, 2022, 06:42:52 PM »
Hi.
I tested on my end with unity 2020.3.21f1 and pm 1.9.4f2
on both (new input and both) setting

and mouse pick event seems to work fine for me.

this is a clean project, then added playmaker and new input system and created a scene with mouse pick event, changing a cubes color

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6913
    • jinxtergames
Re: DeviceShakeEvent with new Input System
« Reply #4 on: February 26, 2022, 06:48:05 PM »
Maybe try creating a new project to test if you can get it to work with just a cube, and some mouse pick events.
Add Playmaker and the new input system then do test.
if it works, then setup some input actions
and see if it breaks at some point.

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
Re: DeviceShakeEvent with new Input System
« Reply #5 on: February 27, 2022, 06:51:13 AM »
Thank you for the feedback; i'll try with a clean scene then :)

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
Re: DeviceShakeEvent with new Input System
« Reply #6 on: February 27, 2022, 09:36:11 AM »
Tested on a cube with mouse pick event on a clean project with new input system only:

in the Editor the scene is working (can't test the shake event though)
Does not work in build (ui buttons are working, pm mouse events no).
And when i reset to "Both" in the input system it also works in the Build.

Everything is up to date btw (X Code, iOS etc)
Unity 2020.3.25f1 - PM 1.9.5f2 (tested also on PM 1.9.4f2)


What now? :/
« Last Edit: February 27, 2022, 09:45:52 AM by elvis75k »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6913
    • jinxtergames

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
Re: DeviceShakeEvent with new Input System
« Reply #8 on: February 27, 2022, 11:04:44 AM »
Hey wow, now this is not clear to me...
could you please post a scene or a package to get things easy to understand?

We are so close to get it working... and what about the shake event?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6913
    • jinxtergames
Re: DeviceShakeEvent with new Input System
« Reply #9 on: February 27, 2022, 12:08:06 PM »
Hi.
Sorry i never used the new input system myself as i always use Rewired (asset) for controls as its way better than unity's input system (old and new)

But from what i understood on the unity forum is that you should add a mouse Scheme.

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 88
    • nRender
Re: DeviceShakeEvent with new Input System
« Reply #10 on: February 27, 2022, 12:39:17 PM »
Ok i see ;) Thanks for your fast and awesome support!