Changeset 3dcb1349a93e8dc6f62d59ba457161483e955c7e
- Timestamp:
- 10/02/03 00:42:06
(6 years ago)
- Author:
- Sigmund Augdal Helberg <sigmunau@videolan.org>
- git-committer:
- Sigmund Augdal Helberg <sigmunau@videolan.org> 1044834126 +0000
- git-parent:
[6a741bd30475513f2b783130077c32837ca56a12]
- git-author:
- Sigmund Augdal Helberg <sigmunau@videolan.org> 1044834126 +0000
- Message:
*: a new mouse gestures interface, currently supporting back, forward, quit
fullscreen and a nice debug message when you draw a clockwise square. Video
output modules needs to be modified for this to work, but it should be minor
in modules supporting dvd navigation.
btw: it should be easy to add new gestures, ideas appreciated
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2b9dfff |
r3dcb134 |
|
| 29 | 29 | control/lirc/Modules.am \ |
|---|
| 30 | 30 | control/rc/Modules.am \ |
|---|
| | 31 | control/Modules.am \ |
|---|
| 31 | 32 | demux/Modules.am \ |
|---|
| 32 | 33 | demux/aac/Modules.am \ |
|---|
| rb6b1bef |
r3dcb134 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2001 VideoLAN |
|---|
| 5 | | * $Id: xcommon.c,v 1.13 2003/02/01 18:54:10 sam Exp $ |
|---|
| | 5 | * $Id: xcommon.c,v 1.14 2003/02/09 23:42:06 sigmunau Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 614 | 614 | { |
|---|
| 615 | 615 | case Button1: |
|---|
| 616 | | |
|---|
| | 616 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 617 | val.i_int |= 1; |
|---|
| | 618 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 619 | |
|---|
| 617 | 620 | /* detect double-clicks */ |
|---|
| 618 | 621 | if( ( ((XButtonEvent *)&xevent)->time - |
|---|
| … | … | |
| 625 | 628 | ((XButtonEvent *)&xevent)->time; |
|---|
| 626 | 629 | break; |
|---|
| 627 | | |
|---|
| | 630 | case Button2: |
|---|
| | 631 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 632 | val.i_int |= 2; |
|---|
| | 633 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 634 | break; |
|---|
| | 635 | |
|---|
| | 636 | case Button3: |
|---|
| | 637 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 638 | val.i_int |= 4; |
|---|
| | 639 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 640 | break; |
|---|
| | 641 | |
|---|
| 628 | 642 | case Button4: |
|---|
| | 643 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 644 | val.i_int |= 8; |
|---|
| | 645 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| 629 | 646 | input_Seek( p_vout, 15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR ); |
|---|
| 630 | 647 | break; |
|---|
| 631 | 648 | |
|---|
| 632 | 649 | case Button5: |
|---|
| | 650 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 651 | val.i_int |= 16; |
|---|
| | 652 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| 633 | 653 | input_Seek( p_vout, -15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR ); |
|---|
| 634 | 654 | break; |
|---|
| … | … | |
| 641 | 661 | { |
|---|
| 642 | 662 | case Button1: |
|---|
| | 663 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 664 | val.i_int &= ~1; |
|---|
| | 665 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 666 | |
|---|
| 643 | 667 | val.b_bool = VLC_TRUE; |
|---|
| 644 | 668 | var_Set( p_vout, "mouse-clicked", val ); |
|---|
| 645 | 669 | break; |
|---|
| 646 | | |
|---|
| | 670 | |
|---|
| | 671 | case Button2: |
|---|
| | 672 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 673 | val.i_int &= ~2; |
|---|
| | 674 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 675 | break; |
|---|
| | 676 | |
|---|
| 647 | 677 | case Button3: |
|---|
| 648 | 678 | { |
|---|
| 649 | 679 | intf_thread_t *p_intf; |
|---|
| | 680 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 681 | val.i_int &= ~4; |
|---|
| | 682 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| 650 | 683 | p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF, |
|---|
| 651 | 684 | FIND_ANYWHERE ); |
|---|
| … | … | |
| 657 | 690 | } |
|---|
| 658 | 691 | break; |
|---|
| | 692 | |
|---|
| | 693 | case Button4: |
|---|
| | 694 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 695 | val.i_int &= ~8; |
|---|
| | 696 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 697 | break; |
|---|
| | 698 | |
|---|
| | 699 | case Button5: |
|---|
| | 700 | var_Get( p_vout, "mouse-button-down", &val ); |
|---|
| | 701 | val.i_int &= ~16; |
|---|
| | 702 | var_Set( p_vout, "mouse-button-down", val ); |
|---|
| | 703 | break; |
|---|
| | 704 | |
|---|
| 659 | 705 | } |
|---|
| 660 | 706 | } |
|---|
| r4bcfe96 |
r3dcb134 |
|
| 6 | 6 | ***************************************************************************** |
|---|
| 7 | 7 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 8 | | * $Id: video_output.c,v 1.211 2003/01/30 19:14:17 gbazin Exp $ |
|---|
| | 8 | * $Id: video_output.c,v 1.212 2003/02/09 23:42:06 sigmunau Exp $ |
|---|
| 9 | 9 | * |
|---|
| 10 | 10 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 328 | 328 | var_Create( p_vout, "mouse-x", VLC_VAR_INTEGER ); |
|---|
| 329 | 329 | var_Create( p_vout, "mouse-y", VLC_VAR_INTEGER ); |
|---|
| | 330 | var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER ); |
|---|
| 330 | 331 | var_Create( p_vout, "mouse-moved", VLC_VAR_BOOL ); |
|---|
| 331 | 332 | var_Create( p_vout, "mouse-clicked", VLC_VAR_INTEGER ); |
|---|