pwc
[Top] [All Lists]

[pwc] Re: Webcam button

To: Philips Webcam Linux Driver <>
Subject: [pwc] Re: Webcam button
From: Andrew Cavers <>
Date: Fri, 8 Jul 2005 10:19:32 +0100
Hello again.

I've spent the last hour poking through Luc's source and found these
lines in pwc-if.c:

if ((ptr[0] ^ pdev->vmirror) & 0x01) {
        if (ptr[0] & 0x01)
                Info("Snapshot button pressed.\n");
        else
                Info("Snapshot button released.\n");
}

I know nothing about c programming, but those lines look quite
promising to me. How could I go about accessing that output?

Cheers,

Andrew.


On 7/8/05, Andrew Cavers <> wrote:
> Hi all,
>
> This question was asked just a month ago and got no response, which I
> guess answers my question, but anyway...
>
> Is there any way to gain access to the button on the top of a pwc
> webcam (I use a Logitech Quickcam Pro 4000)? Would this task be up to
> the pwc video driver or would the button be treated like a separate
> USB device like the microphone? I realise that 99% of users will never
> use the button and that using up bandwidth checking whether it's being
> pushed may seem like a waste, but for certain applications, that
> button could be very useful.
>
> For example, I am developing a device that uses only motion detection
> through the webcam to control it and that one button would prove very
> useful to me to invoke a callibration function.
>
> Thanks for any help,
>
> Andrew.
>
> --
> --
> Andrew Cavers
> 
> www.mution.com
>


--
--
Andrew Cavers

www.mution.com
_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU