struct Efl.Input.Clickable_Clicked { [[A struct that expresses a click in elementary.]] repeated : int; [[The amount of how often the clicked event was repeated in a certain amount of time]] button : int; [[The Button that is pressed]] }
Description
Details
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | None | T7866 efl.ui.nstate | ||
Resolved | None | T7846 efl.ui.button | ||
Open | None | T7510 evaluate stabilization potential of efl.ui classes and dependencies | ||
Open | None | T7849 efl.ui.text | ||
Resolved | bu5hm4n | T8096 efl.ui.collection | ||
Resolved | None | T7870 efl.ui.grid | ||
Resolved | None | T7881 efl.ui.list | ||
Resolved | None | T7873 efl.ui.image | ||
Resolved | cedric | T7885 efl.ui.list_view | ||
Resolved | None | T7905 efl.ui.item | ||
Resolved | None | T7847 efl.input.clickable | ||
Resolved | None | T7976 Efl.Input.Clickable_Clicked |
This will be changed when "efl.ui.clickable(T7847)" will have different name. Am I right?
If so, we may need to postpone removing @beta from this structure.
Is there a use case that developers use the value "repeated"?
BTW, I cannot increase the value "repeated" within DOUBLE_CLICK_TIME 0.1..
Is there a use case that developers use the value "repeated"?
There are some apps which use triple-clicking (like selecting a word with double-click, and a whole paragraph with triple-click).
BTW, I cannot increase the value "repeated" within DOUBLE_CLICK_TIME 0.1..
Sorry, I do not understand what you mean.
Thanks for the information :)
Then, the purpose of "repeated" might be to notice double click and triple click.
BTW, I cannot increase the value "repeated" within DOUBLE_CLICK_TIME 0.1..
Sorry, I do not understand what you mean.
I mean that "repeated" is calculated by how many times unpress happens within 0.1 second (defined macro DOUBLE_CLICK_TIME).
If "repeated" is designed to be used for double click or triple click, then it seems that the time 0.1 second is required to be longer.
(BTW, it seems that Windows uses 0.5 second for double click. https://en.wikipedia.org/wiki/Double-click)
One more thing~ Do we need to use different time (duration) to check double click and triple click?
e.g. 0.5 second to check double click and 0.75 second to check triple click?)
DOUBLE_CLICK_TIME is the time required for two consecutive clicks to be considered together.
After the second click, you have 0.1s to click again and get a triple click.
After the third click, you have 0.1s again to click a forth time, etc.
So, in summary, you can click 1000 times, and, if there is no more than 0.1s in between each consecutive click, you will get events with an increased repeated count.
I agree 0.1s maybe is too short. 0.5s sounds fine to me.
@segfaultxavi Thank you very much! :) Your clear explanation helped me to fully understand this feature. I made D9485 to increase the time interval. I adopted your explanation~ :)