@npisanti @neauoire why is the mouse disabled now in orca-c?

@cancel @neauoire to match orcaJS, the mouse is disabled also there, so as it was a problem also for me in orca-c (sometimes mouse click is triggered by error with big touchpads) i disabled it, it can be enabled by ORCA_USES_MOUSE 1

@npisanti @neauoire I reverted it because there was no way to re-enable it without editing a source file. Can you change it to a run-time parameter or a `tool` parameter? I thought the JS version had no mouse support simply because it wasn't implemented.

@cancel @neauoire i think the JS version had mouse support and then was removed (or maybe i don't remember well)

i have to do a workshop and live in a few days, so i will do it later

i can do it with a tool parameter like FEAT_MOUSE using portmidi as example

@npisanti @neauoire it should be on by default. i don't see a reason to disable a feature that was already working and people may have been using. i would be pissed off if someone removed a feature from software i was using with no explanation.

@cancel @neauoire we discussed it here:

but a --nomouse flag is fine for me

anyway, but i saw you removed the random seeding, i understand it could be buggy, but why not substitute that code with another correct implementation?

having random with different values each time you start orca is also a very important feature, and doing something safer than that it's probably out of my league at the moment

@npisanti @neauoire i couldn't even run orca-c in debug mode because it aborted immediately due to overflow

@npisanti @neauoire i don't know what that function was supposed to do... i have no idea how to fix it

@npisanti @neauoire well if i'm out-voted on it being enabled by default, at least it shouldn't be locked behind editing a source file to re-enable it. i'd rather not be patronizing with regards to how to use the software.

@cancel @neauoire ok if that function crashed that way that was really bad

that function was supposed to generate a random seed by using clock(), time() and the program PID, i think something similar by using the PID and something else could be fine

@cancel about the mouse, as i said also using --nomouse as flag is fine, so i'd like to have @neauoire opinion again

@npisanti @neauoire surely you don't need better precision than one second for the pseudorandom number? the PID and other stuff just adds unnecessary complication...

@npisanti @neauoire you could also just use the random functions from libc

@npisanti @neauoire (though you'd init the random seed from the current time and only use the call to random once, so it's kind of an unnecessary step)

@cancel @neauoire yes, i just need a seed that is not predictable, i think using the PID could really help to add randomness to that

@cancel hey I just arrived in Tokyo, and I will be here for AND i wanna go o Akiba so, let's hang :)

I'm going to see moxus, go-qalia and Yaporigami tonight at BRDG. Let me know if you wanna join us.

Otherwise I'm pretty free, that was pretty much my only plan.

@neauoire ah sorry, i woke up just a few minutes ago, haha. my sleep schedule is fubar right now.

Sign in to participate in the conversation

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.