Page MenuHomePhabricator

Efl.Input.Clickable_Clicked
Closed, ResolvedPublic

Description

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]]
}

Related Objects

StatusAssignedTask
ResolvedNone
ResolvedNone
OpenNone
OpenNone
Resolvedbu5hm4n
ResolvedNone
ResolvedNone
ResolvedNone
Resolvedcedric
ResolvedNone
ResolvedNone
ResolvedNone
bu5hm4n created this task.May 18 2019, 12:39 PM
bu5hm4n triaged this task as TODO priority.
bu5hm4n updated the task description. (Show Details)
zmike added a comment.Jun 14 2019, 6:57 AM

This seems pretty straightforward?

zmike moved this task from Backlog to Trivial on the efl: api board.Jun 14 2019, 6:57 AM
bu5hm4n moved this task from Trivial to Stabilized on the efl: api board.Jul 8 2019, 3:01 AM

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.

Good point.

bu5hm4n moved this task from Stabilized to Trivial on the efl: api board.Jul 11 2019, 4:32 AM
bu5hm4n renamed this task from Efl.Ui.Clickable_Clicked to Efl.Input.Clickable_Clicked.Jul 31 2019, 4:09 AM
bu5hm4n updated the task description. (Show Details)
bu5hm4n moved this task from Trivial to Stabilized on the efl: api board.

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.

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).

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~ :)

Explaining things is my job! :D

zmike added a comment.Aug 2 2019, 5:46 AM

Looking at this again, shouldn't these values be uint?

Strictly speaking.... yeah, I guess so /o\