ccMSC / ckb

RGB Driver for Linux and OS X
http://forum.corsair.com/v3/showthread.php?t=133929
GNU General Public License v2.0
1.34k stars 170 forks source link

[Feature request] #388

Open rbieb opened 8 years ago

rbieb commented 8 years ago

It would be nice if we were able to change the key at which each animation starts.

For example, the starting point for the ripple effect is the i-key, would be great if it could be changed to something else, too.

tatokis commented 8 years ago

https://vps.tasossah.com/ckb/ckb-ripple_offset.patch Is this what you mean?

rbieb commented 8 years ago

I'd have to take a closer look at how exactly this works, but I think it is. how exactly would I use that once I've changed it?

tatokis commented 8 years ago

It adds two new options in the Ripple animation settings, which let you change the X and Y offset of the center. 100% on the X axis is all the way to the right and -100% all the way to the left. Similarly for the Y axis.

312f99fe496d

rbieb commented 8 years ago

Ah, I see. But what I meant was this: How do I actually apply that patch file?

tatokis commented 8 years ago

Download it to the ckb directory that already has the patch for your keyboard, run

patch -p1 < ckb-ripple_offset.patch

and recompile ckb.

rbieb commented 8 years ago

Thanks, I get this error though:

patching file src/ckb-ripple/main.c
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line
tatokis commented 8 years ago

Ignore the errors, should work fine

rbieb commented 8 years ago

Got it, works beautifully, thank you!

batchpert commented 8 years ago

I like the idea of this but how do you do the

Download it to the ckb directory that already has the patch for your keyboard, run patch -p1 < ckb-ripple_offset.patch and recompile ckb.

Sorry if its something simple i am not the best at this sort of stuff but would really like to get this effect to work without messing something up

batchpert commented 8 years ago

I just wanted to add something to this but currently it seems to be set to (unless ive missed something) that if i was to have a ripple going across a line of keys say for example the F keys but i only wanted the ripple to go off when i pressed the pause key the ripple is only seen on all the keys its set to. However this would mean that if i wanted the ripple to be seen across all the F keys then i would need to set all those keys to function in the same manner so i could press any of the F keys and they would all create the same ripple?

Am i right in thinking this and if so is there some way to change this so i could for example press the pause key and a ripple is shown somewhere else?

ccMSC commented 8 years ago

You're correct, there's no way to separate the trigger keys from the animation keys. I've considered adding it but there are more important features I want to get around to first.