[Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK
Paul Fox
pgf at laptop.org
Thu Jan 24 10:13:53 EST 2013
jerry wrote:
> On 24 January 2013 08:11, Ajay Garg <ajay at activitycentral.com> wrote:
>
> >
> >
> > On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg <ajay at activitycentral.com>wrote:
> >
> >>
> >>
> >> On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard <gonzalo at laptop.org>wrote:
> >>
> >>> ....
> >>>
> >>>> So, it seems that just hacking onto the game-key won't help :(
> >>>>
> >>>
> >>> No. Will not work, because the osk will appear if you touch over a input
> >>> widget.
> >>> The game keys are not the expected way to show the osk.
> >>>
> >>
> >> Hmm.. which brings us back to square one :(
> >>
> >
> >
> > Let's try another way :P
> >
> > Is there a way, so that we may know whether we are in ebook-mode, or
> > normal-mode?
> >
> >
> Yes, there is a ebook switch event:
i believe sugar already has code to detect the two modes, since
that's how it knows whether to present the OSK or not.
paul
>
> Jan 24 01:14:28 xo-1e-89-0d kernel: OLPC XO-1.75 lid and ebook switches
> Jan 24 01:14:28 xo-1e-89-0d kernel: input: OLPC lid switch as
> /devices/virtual/input/input3
> Jan 24 01:14:28 xo-1e-89-0d kernel: input: OLPC ebook switch as
> /devices/virtual/input/input4
>
> Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev:
> starting olpc-kbdshim-udev version 29
> Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
> 4: found touchscreen (zForce touchscreen) /dev/input/event8 (18:00:00)
> Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
> 6: found keyboard (AT Translated Set 2 keyboard) /dev/input/event5
> (11:01:01)
> Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
> 7: found touchpad (FSPPS/2 Sentelic FingerSensingPad) /dev/input/event9
> (11:02:0f)
>
> Jan 24 01:14:49 xo-1e-89-0d olpc-kbdshim-udev[484]: olpc-kbdshim-udev: fd
> 8: found ebook switch
>
> Jerry
> part 2 text/plain 153
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
=---------------------
paul fox, pgf at laptop.org
More information about the Devel
mailing list