Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: Greg on August 06, 2012, 07:54:17 PM

Title: AF button to halfshutter while Live View on 500D
Post by: Greg on August 06, 2012, 07:54:17 PM
How can i find the code to the AF button ?
The following code does not work with the liveview

#define BGMT_PRESS_ZOOMOUT_MAYBE 0xD

-----------------------------------------------------------------------------------

if (lv && HALFSHUTTER_PRESSED)
            {
                fake_simple_button(BGMT_PRESS_ZOOMOUT_MAYBE);
            }


I wanted to move the AF button to halfshutter while Live View on 500D
Title: Re: AF button to halfshutter while Live View on 500D
Post by: a1ex on August 06, 2012, 09:17:28 PM
Isn't this already in Canon menus?

To find out button codes, go to debug.c and change this:


void spy_event(struct event * event)
{
-    if (get_draw_event())
+    if (1)


but half-shutter press is "special".
Title: Re: AF button to halfshutter while Live View on 500D
Post by: Greg on August 07, 2012, 12:01:50 AM
AF button and halfshutter have the same value.
Title: Re: AF button to halfshutter while Live View on 500D
Post by: a1ex on August 07, 2012, 12:08:31 AM
And that value is EVENTID_METERING_START ;)
Title: Re: AF button to halfshutter while Live View on 500D
Post by: Greg on August 07, 2012, 01:18:43 AM
It will be difficult if it is possible.
Title: Re: AF button to halfshutter while Live View on 500D
Post by: a1ex on August 07, 2012, 08:20:05 AM
I still don't understand what you want do do.

Maybe play with those:

cfn_set_af_button(AF_BTN_HALFSHUTTER);
cfn_set_af_button(AF_BTN_STAR);
Title: Re: AF button to halfshutter while Live View on 500D
Post by: Greg on August 07, 2012, 10:42:23 PM
500D does not have this feature for LiveView

Focusing on the LV 500D only works with this button
http://img444.imageshack.us/img444/9808/500d.jpg

a made help for panoramas - http://www.youtube.com/watch?v=n1i-ATzy3WY&feature=channel  ;D