EverestAPI / CelesteTAS-EverestInterop

Everest interop for DevilSquirrel's CelesteTAS
https://github.com/EuniverseCat/CelesteTAS
MIT License
67 stars 28 forks source link

feat: add "Mouse" command for mouse support #27

Closed XMinty77 closed 1 year ago

XMinty77 commented 1 year ago

The added "Mouse" command takes x and y coordinates within a 320x180 input space and moves the mouse accordingly. To avoid desyncs, the command only runs on window sizes that are integer upscales of the game's original 320x180 size. Edit: Now supports clicking/holding left, middle and right mouse buttons.

DemoJameson commented 1 year ago

I am currently on vacation, when I have time I will review and merge

DemoJameson commented 1 year ago

@Kalobi can you give it a try

Kalobi commented 1 year ago

@DemoJameson Now it's not even setting the position.

DemoJameson commented 1 year ago

How did you test it?

Mouse.SetPosition is not called anymore, I only set MInput.Mouse.CurrentState because I don't want to change the user's mouse position when tas

I tested the Chinese New Year Collab map, right click can show the wheel, but it needs to move before click, left click is normal, I think this is a problem that New Year helper needs to solve.

DemoJameson commented 1 year ago

ok, we can test with debug map, here is what I tested

unsafe
console load 2
   1
console e
   1
console load 1
   1
console e
   1

#Start
Mouse 0 20
   1
Mouse 319 179
   1
Mouse M 170 80
   1
Mouse M 100 100
   1
Mouse 100 100 10
   1
Mouse L 120 100
   1
Mouse L 120 110
   1
Mouse R 120 110
   1
Kalobi commented 1 year ago

I tested with Guneline.

Kalobi commented 1 year ago

ok, we can test with debug map, here is what I tested

This seems to be working, so it's probably a Guneline issue.