[E-devel] [Question][Windows] Shift/Alt/Ctrl key press operation

23 views
Skip to first unread message

cnook

unread,
Mar 21, 2012, 6:53:30 AM3/21/12
to EFL
Dear All, Hello.

I have a question about shift/alt/ctrl key press operation.
On the X environment, shift/alt/ctrl key press
event(EVAS_CALLBACK_KEY_DOWN) does not occur repeatedly .
But on the Windows, shift/alt/ctrl key press event occurs repeatedly.

Now let's suppose you have an application which takes care of
shift/alt/ctrl key press event.
The application would work improperly if there is not enough handling for
those key events.

So how about your opinion on this.
Should I change ecore_win32_things to occur EVAS_CALLBACK_KEY_DOWN event
once (not repeatedly)
Or should I change the Application....?

Would you ENLIGHTEN me on this question?

Sincerely,
Shinwoo Kim.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlighten...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Carsten Haitzler

unread,
Mar 21, 2012, 7:47:55 AM3/21/12
to Enlightenment developer list, cnook
On Wed, 21 Mar 2012 19:53:30 +0900 cnook <kimc...@gmail.com> said:

> Dear All, Hello.
>
> I have a question about shift/alt/ctrl key press operation.
> On the X environment, shift/alt/ctrl key press
> event(EVAS_CALLBACK_KEY_DOWN) does not occur repeatedly .
> But on the Windows, shift/alt/ctrl key press event occurs repeatedly.
>
> Now let's suppose you have an application which takes care of
> shift/alt/ctrl key press event.
> The application would work improperly if there is not enough handling for
> those key events.

correct.

> So how about your opinion on this.
> Should I change ecore_win32_things to occur EVAS_CALLBACK_KEY_DOWN event
> once (not repeatedly)
> Or should I change the Application....?

for modifiers (and locks - like capslock, numlock etc.) - yes, ecore_win32
should be3 changed to weed out key repeats of these. :(

> Would you ENLIGHTEN me on this question?
>
> Sincerely,
> Shinwoo Kim.
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> enlightenment-devel mailing list
> enlighten...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) ras...@rasterman.com

Vincent Torri

unread,
Mar 26, 2012, 2:32:00 AM3/26/12
to Enlightenment developer list
On Mon, Mar 26, 2012 at 7:29 AM, cnook <kimc...@gmail.com> wrote:
> Thanks for your response.
> I have attached a patch upon  your comments.
> The meaning of bit 30(0x40000000 in the patch) is as bellows
> "The previous key state. The value is 1 if the key is down before the
> message is sent, or it is 0 if the key is up."
> The Evas_CALLBACK_KEY_DOWN event will occur once even though you hold down
> Shift/Ctrl/Alt key, If  you keep the patch.

in svn, thanks

Vincent

Vincent Torri

unread,
Mar 26, 2012, 2:33:47 AM3/26/12
to Enlightenment developer list
On Mon, Mar 26, 2012 at 8:32 AM, Vincent Torri <vincen...@gmail.com> wrote:
> On Mon, Mar 26, 2012 at 7:29 AM, cnook <kimc...@gmail.com> wrote:
>> Thanks for your response.
>> I have attached a patch upon  your comments.
>> The meaning of bit 30(0x40000000 in the patch) is as bellows
>> "The previous key state. The value is 1 if the key is down before the
>> message is sent, or it is 0 if the key is up."
>> The Evas_CALLBACK_KEY_DOWN event will occur once even though you hold down
>> Shift/Ctrl/Alt key, If  you keep the patch.
>
> in svn, thanks
>

thinking of that, what about the Win key ?

Kim Shinwoo

unread,
Mar 26, 2012, 4:59:54 AM3/26/12
to Enlightenment developer list
Oh.. sure, you are right. the Win key also needs the patch. - I have attached -

I have one more question.

On the Ubuntu, when you hold down the Space key, then DOWN and UP
event occur repeatedly
even though only DOWN event occurs on the Windows.. So my question is
as before...

Should I modify the ecore_win32_event? or Should the application
handle the case.?
Please ENLIGHTEN me again.. Thanks!

Sincerely,
Shinwoo Kim.

2012/3/26 Vincent Torri <vincen...@gmail.com>:

ecore_winxx_event.c.using.previous.key.state.for.win.key

Carsten Haitzler

unread,
Mar 29, 2012, 4:05:23 AM3/29/12
to Enlightenment developer list
On Wed, 28 Mar 2012 16:16:54 +0900 Kim Shinwoo <kimcin...@gmail.com> said:

what is this is_keystroke stuff an why should it fire a key up (on wince/32)
during a key press?

> ah.. yes, you right the patch to fire the key-up event no the mouse-up
> event. :)
>
> 2012/3/28 Vincent Torri <vincen...@gmail.com>:
> > On Wed, Mar 28, 2012 at 4:23 AM, Kim Shinwoo <kimcin...@gmail.com> wrote:
> >> Dear All, Hello.
> >>
> >> Please review the previous patch first which is related with the WIN key.
> >
> > it's already in svn :-)
> >
> >> Even though there is no answer to the previous question, I have made
> >> and attached a patch to fire the mouse-up event when you hold down
> >> keys which make WM_CHAR and WM_SYSCHAR.
> >> Please review the patch and give any feedbacks. Thanks. ;)
> >
> > hmm, you're talking about mouse up but the event is a keyboard one


> >
> > Vincent
> >
> > ------------------------------------------------------------------------------
> > This SF email is sponsosred by:
> > Try Windows Azure free for 90 days Click Here
> > http://p.sf.net/sfu/sfd2d-msazure
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlighten...@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> enlightenment-devel mailing list
> enlighten...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) ras...@rasterman.com

Kim Shinwoo

unread,
Mar 29, 2012, 11:00:09 AM3/29/12
to Carsten Haitzler, Enlightenment developer list
Umm.. because the key event works like that on the Ubuntu.
You can check by adding two callbacks to one object for key_down and
key_up. When you hold down the key which makes WM_CHAR/SYSCHAR message,
both callbacks will be called. And the is_keystroke is true, if
WM_CHAR/SYSCHAR message fires.

2012년 3월 29일 목요일에 Carsten Haitzler<ras...@rasterman.com>님이 작성:

Reply all
Reply to author
Forward
0 new messages