Skip to content

continuous joystick event if stick is not released. #37

@dolikemedo

Description

@dolikemedo

Hello!
Sorry if I'm being inapropriet! I'm a newbie!
I would like to ask, if it is possibly to have a continuous event?
If I keep the stick in a non zero position, then the events stop happening.

I'm controlling a robot, and I have to keep making little movements, to keep moving in a direction.
I'm sending movement messages directly to the robot, but as I see in the console of the browser, the event counter stops
if I just hold the stick whereever.

I'm also new to React, and JS .. :)

I'm doing this: handleMove(event){...translating event to robot, sending...}

I don't really know, but does it makes sense to have a boolean property like 'continuous={false}' or true
and so the when I just hold the stick in a certain position, It is still an event.
Or a threshold or something, that can be set to 0 IF the stick is in a non zero position.
(I guess It wouldnt make much sense to have a nonstop event happening if its zero)

Thanks!! :)

(I might be just very noobish, I trying to figure out a workaround, I played with throttled, I tried figuring out the code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions