From: "Kim Kyuwon" <chammoru@gmail.com>
To: linux-input@vger.kernel.org
Cc: kyuwonmoru.kim@samsung.com, sj76.park@samsung.com,
sk.heo@samsung.com, kyungmin.park@samsung.com,
Jiri Kosina <jkosina@suse.cz>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: Adding 'half shutter' definition to 'input.h'
Date: Thu, 8 Jan 2009 11:48:31 +0900 [thread overview]
Message-ID: <4d34a0a70901071848m65efb9es26a326cf36feeef6@mail.gmail.com> (raw)
In-Reply-To: <4d34a0a70812231631u359e85an29d2ed30bccd59a5@mail.gmail.com>
Hi, All
Because Jiri Kosina personally agrees with adding the [half]shutter
key yesterday,
I'm sending this patch. (Thanks Jiri)
New cameras and mobile phones (at least SAMSUNG's) have the half shutter for
'auto-focus' functions. so I think this half and full shutter keys are needed.
Please review this patch.
Thank you!
On Wed, Dec 24, 2008 at 9:31 AM, 김규원 <chammoru@gmail.com> wrote:
> Thanks for your reply ;)
>
> On Tue, Dec 23, 2008 at 5:45 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
>> Hi Kim,
>>
>> On Monday 22 December 2008 22:27:51 Kyu-Won Kim wrote:
>>> Hi Dmitry,
>>>
>>> We are making the camera application for mobile phone and our products have
>>> half shutter (the technical name of buttion is "Double-action
>>> Side-operation Type Light Touch Switch") as other general cameras.
>>> Datasheet is here:
>>> http://www.datasheetpro.com/205793_view_EVQQ0C03K_datasheet.html
>>>
>>> The problem is that there is no KEY definition for half shutter in input.h.
>>> I think KEY_CAMERA is the most related key but we need more definitions
>>> like KEY_CAMERA2, KEY_HALFSUTTER or KEY_FULLSHUTTER
>>>
>>> Could you give me your opinions about this half shutter
>>>
>>
>> Hmm, we certainly could add some more key definitions, but given that the
>> usage is very tightly coupled to the device and application I wonder if you
>> should simply use KEY_PROG* there...
>
> We can simply use KEY_PROG1, but state-of-the-art digital camera supports
> 'auto-focus' functions and therefore I think Half-Shutter key is a MUST. (I'm
> sure there are many digital cameras which use Linux as OS).
>
>>
>> Let's CC Jiri Kosina and see if he has any input on this matter.
>
> Can I ask Kosina's opinion, too?
>
>>
>> --
>> Dmitry
>>
>
>
> --
> Kim Kyuwon
>
commit a2f0629f9202433cd2b23b5c951dae66fd2b4f14
Author: Kim Kyuwon <kyuwonmoru.kim@samsung.com>
Date: Thu Jan 8 11:08:43 2009 +0900
Input: add definitions for camera full and half shutters
Signed-off-by: Kim Kyuwon <kyuwonmoru.kim@samsung.com>
diff --git a/include/linux/input.h b/include/linux/input.h
index 9a6355f..41ed2fb 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -541,6 +541,9 @@ struct input_absinfo {
#define KEY_CONTEXT_MENU 0x1b6 /* GenDesc - system context menu */
#define KEY_MEDIA_REPEAT 0x1b7 /* Consumer - transport control */
+#define KEY_HALF_SHUTTER 0x1b8
+#define KEY_FULL_SHUTTER 0x1b9
+
#define KEY_DEL_EOL 0x1c0
#define KEY_DEL_EOS 0x1c1
#define KEY_INS_LINE 0x1c2
--
Kim Kyuwon
next parent reply other threads:[~2009-01-08 2:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <13840250.309261230013670370.JavaMail.weblogic@epml09>
[not found] ` <200812230045.42765.dmitry.torokhov@gmail.com>
[not found] ` <4d34a0a70812231631u359e85an29d2ed30bccd59a5@mail.gmail.com>
2009-01-08 2:48 ` Kim Kyuwon [this message]
2009-01-08 8:51 ` Adding 'half shutter' definition to 'input.h' Jiri Kosina
2009-01-11 7:57 ` Dmitry Torokhov
2009-01-12 1:00 ` Kim Kyuwon
2009-01-12 7:23 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4d34a0a70901071848m65efb9es26a326cf36feeef6@mail.gmail.com \
--to=chammoru@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=kyungmin.park@samsung.com \
--cc=kyuwonmoru.kim@samsung.com \
--cc=linux-input@vger.kernel.org \
--cc=sj76.park@samsung.com \
--cc=sk.heo@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).