search for: mouse_button

Displaying 16 results from an estimated 16 matches for "mouse_button".

2005 Oct 20
0
[PATCH][VT] disable bogus touchpad device model, which cause annoying dmesg on 2.6 kernel
...0 /* Write mode bits */ @@ -117,10 +120,12 @@ int rptr, wptr, count; } KBDQueue; +#ifdef SYNAPTIC typedef struct { int absolute; int high; } TouchPad; +#endif typedef struct KBDState { KBDQueue queue; @@ -142,7 +147,9 @@ int mouse_dy; int mouse_dz; uint8_t mouse_buttons; +#ifdef SYNAPTIC TouchPad touchpad; +#endif } KBDState; KBDState kbd_state; @@ -399,6 +406,7 @@ dx1 = s->mouse_dx; dy1 = s->mouse_dy; dz1 = s->mouse_dz; +#ifdef SYNAPTIC if (s->touchpad.absolute) { int dz2, dleftnright, dg, df; @@ -444,6 +452,7 @@...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...swfdec_movie_new_for_content (mov, content); - } - } - movie->state = state; -} - -static void -swfdec_button_movie_change_mouse (SwfdecButtonMovie *movie, gboolean mouse_in, int button) -{ - int event; - int sound; - - if (movie->mouse_in == mouse_in && - movie->mouse_button == button) - return; - SWFDEC_LOG ("changing mouse state %s: %s %s (%u) => %s %s (%u)", - movie->button->menubutton ? "MENU" : "BUTTON", - movie->mouse_in ? "IN" : "OUT", movie->mouse_button ? "DOWN" : "U...
2007 Oct 30
0
libswfdec/swfdec_button_movie.c
...[(mouse_in ? 2 : 0) + button]; #ifndef G_DISABLE_ASSERT - if (event == (guint) -1) { + if (event == -1) { g_error ("Unhandled event for %s: %u => %u", movie->button->menubutton ? "menu" : "button", (movie->mouse_in ? 2 : 0) + movie->mouse_button, (mouse_in ? 2 : 0) + button); } #endif - if (event != 0) { + if (event >= 0) { SWFDEC_LOG ("emitting event for condition %u", event); swfdec_button_movie_execute (movie, event); }
2007 Aug 21
0
Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui
...e diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index b48c746..c6d5b3c 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -171,7 +171,14 @@ swfdec_button_movie_change_mouse (Swfdec [(movie->mouse_in ? 2 : 0) + movie->mouse_button] [(mouse_in ? 2 : 0) + button]; - g_assert (event != (guint) -1); +#ifndef G_DISABLE_ASSERT + if (event == (guint) -1) { + g_error ("Unhandled event for %s: %u => %u", + movie->button->menubutton ? "menu" : "button", + (movie->mouse_in ? 2 :...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...TR_Mouse, SWFDEC_AS_STR_onMouseMove); @@ -1094,19 +1123,20 @@ swfdec_player_do_mouse_move (SwfdecPlayer *player, double x, double y) static gboolean swfdec_player_do_mouse_press (SwfdecPlayer *player, guint button) { + SwfdecPlayerPrivate *priv = player->priv; GList *walk; - player->mouse_button |= 1 << button; + priv->mouse_button |= 1 << button; if (button == 0) { - for (walk = player->movies; walk; walk = walk->next) { + for (walk = priv->movies; walk; walk = walk->next) { swfdec_movie_queue_script (walk->data, SWFDEC_EVENT_MOUSE_DOWN);...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...;player->mouse_drag_y); if (drag->parent) swfdec_movie_global_to_local (drag->parent, &player->mouse_drag_x, &player->mouse_drag_y); player->mouse_drag_x -= drag->matrix.x0; @@ -805,9 +807,13 @@ swfdec_player_update_mouse_position (Swf if (player->mouse_button) { mouse_grab = player->mouse_grab; } else { + double x, y; /* if the mouse button is pressed the grab widget stays the same (I think) */ + x = player->mouse_x; + y = player->mouse_y; + swfdec_player_stage_to_global (player, &x, &y); for (walk = g_list...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...ayer->mouse_x; *y = player->mouse_y; swfdec_movie_global_to_local (movie, x, y); @@ -577,7 +578,7 @@ swfdec_movie_send_mouse_change (SwfdecMo button = 0; } else { mouse_in = swfdec_movie_mouse_in (movie, x, y); - button = SWFDEC_ROOT_MOVIE (movie->root)->player->mouse_button; + button = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context)->mouse_button; } klass = SWFDEC_MOVIE_GET_CLASS (movie); g_assert (klass->mouse_change != NULL); @@ -840,7 +841,7 @@ static void swfdec_movie_set_parent (SwfdecMovie *movie) { SwfdecMovie *parent = movie->par...
2013 Feb 01
1
Wine release 1.5.23
...ents. winemac: Implement a WINDOW_CLOSE_REQUESTED event to allow closing windows. winemac: Implement WINDOW_FRAME_CHANGED event to tell Wine when window is moved or resized. winemac: Add infrastructure to convert from Cocoa event time to Wine tick count. winemac: Implement a MOUSE_BUTTON event for mouse clicks. winemac: Take control over when a window can become focused away from Cocoa. winemac: Maintain a list of which windows have been "key" (focused) recently. winemac: Implement a WINDOW_GOT_FOCUS event for when Cocoa tries to focus a window. wi...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...layer->movies; walk; walk = walk->next) { swfdec_movie_queue_script (walk->data, SWFDEC_EVENT_MOUSE_MOVE); } + swfdec_listener_execute (player->mouse_listener, "onMouseMove"); swfdec_player_update_mouse_position (player); } @@ -501,15 +503,19 @@ swfdec_player_do_mouse_button (SwfdecPla { GList *walk; guint event; + const char *event_name; if (player->mouse_button) { event = SWFDEC_EVENT_MOUSE_DOWN; + event_name = "onMouseDown"; } else { event = SWFDEC_EVENT_MOUSE_UP; + event_name = "onMouseUp"; } for (walk =...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...ton_movie_change_mouse (Swfdec audio = swfdec_audio_event_new ( SWFDEC_ROOT_MOVIE (SWFDEC_MOVIE (movie)->root)->player, movie->button->sounds[sound]); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } movie->mouse_in = mouse_in; movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if (movie->sound_frame != movie->c...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...fdecInteraction *inter) -{ - g_return_if_fail (inter != NULL); - - g_array_free (inter->commands, TRUE); - g_free (inter); -} - -void -swfdec_interaction_reset (SwfdecInteraction *inter) -{ - g_return_if_fail (inter != NULL); - - inter->mouse_x = 0; - inter->mouse_y = 0; - inter->mouse_button = 0; - inter->cur_idx = 0; - inter->time_elapsed = 0; -} - -static void -swfdec_interaction_scanner_message (GScanner *scanner, gchar *message, gboolean error) -{ - if (!error) - g_printerr ("warning: %s\n", message); - g_set_error (scanner->user_data, G_FILE_ERROR, G_FILE...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...ton_movie_change_mouse (Swfdec audio = swfdec_audio_event_new ( SWFDEC_ROOT_MOVIE (SWFDEC_MOVIE (movie)->root)->player, movie->button->sounds[sound]); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } movie->mouse_in = mouse_in; movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if (movie->sound_frame != movie->c...
2012 Feb 08
28
[PATCH v3 0/6] initial suspend support
This patch series makes suspend support in qemu alot more useful. Right now the guest can put itself into s3, but qemu will wakeup the guest instantly. With this patch series applied the guest will stay suspended instead and there are a few events which can kick the guest out of suspend state: A monitor command, ps/2 input, serial input, rtc. Not much yet, but it''s a start with the
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...>data, SWFDEC_EVENT_MOUSE_MOVE); } - swfdec_listener_execute (player->mouse_listener, "onMouseMove"); + swfdec_listener_execute (player->mouse_listener, SWFDEC_AS_STR_ON_MOUSE_MOVE); swfdec_player_update_mouse_position (player); } @@ -555,10 +543,10 @@ swfdec_player_do_mouse_button (SwfdecPla if (player->mouse_button) { event = SWFDEC_EVENT_MOUSE_DOWN; - event_name = "onMouseDown"; + event_name = SWFDEC_AS_STR_ON_MOUSE_DOWN; } else { event = SWFDEC_EVENT_MOUSE_UP; - event_name = "onMouseUp"; + event_name = SWFDEC_AS_STR_ON_...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...e diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index b48c746..c6d5b3c 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -171,7 +171,14 @@ swfdec_button_movie_change_mouse (Swfdec [(movie->mouse_in ? 2 : 0) + movie->mouse_button] [(mouse_in ? 2 : 0) + button]; - g_assert (event != (guint) -1); +#ifndef G_DISABLE_ASSERT + if (event == (guint) -1) { + g_error ("Unhandled event for %s: %u => %u", + movie->button->menubutton ? "menu" : "button", + (movie->mouse_in ? 2 :...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
..._export_class (SwfdecPlayer * player, const char * name, SwfdecAsObject * object); +SwfdecSocket * swfdec_player_create_socket (SwfdecPlayer * player, + const char * hostname, + guint port); + #define swfdec_player_is_mouse_pressed(player) ((player)->priv->mouse_button & 1) void swfdec_player_invalidate (SwfdecPlayer * player, const SwfdecRect * rect); diff --git a/libswfdec/swfdec_socket.c b/libswfdec/swfdec_socket.c new file mode 100644 index 0000000..723050c --- /dev/null +++ b/libswfdec/swfdec_socket.c @@ -0,0 +1,99 @@ +/* Swfdec + * Copyright...