LiVES  3.2.0
Macros | Functions | Variables
keyboard.h File Reference

Go to the source code of this file.

Macros

#define LIVES_XEVENT_TYPE_KEYPRESS   2
 
#define LIVES_XEVENT_TYPE_KEYRELEASE   3
 
#define key_left   100
 
#define key_left2   113
 
#define key_right   102
 
#define key_right2   114
 
#define key_up   98
 
#define key_up2   111
 
#define key_down   104
 
#define key_down2   116
 
#define EXT_TRIGGER_INTERVAL   4
 
#define KEY_RPT_INTERVAL   40
 
#define DEF_MIDI_CHECK_RATE   1000
 default MIDI checks per keyboard cycle (i.e. More...
 
#define DEF_MIDI_RPT   1000
 allowed non-reads between reads (raw MIDI only) More...
 

Functions

boolean key_press_or_release (LiVESWidget *, LiVESXEventKey *, livespointer)
 wrapper for pl_key_function More...
 
boolean ext_triggers_poll (livespointer)
 poll for external playback start More...
 
void handle_cached_keys (void)
 smooth the key repeat for scratching More...
 
boolean pl_key_function (boolean down, uint16_t unicode, uint16_t keymod)
 all funky stuff with keys More...
 
boolean faster_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean slower_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean more_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean less_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean skip_back_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean skip_forward_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean stop_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean rec_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean loop_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean loop_cont_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean ping_pong_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean dblsize_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean showfct_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean showsubs_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean fullscreen_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean sepwin_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean fade_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean volup_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
boolean voldown_callback (LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 

Variables

uint16_t cached_key
 
uint16_t cached_mod
 

Macro Definition Documentation

◆ DEF_MIDI_CHECK_RATE

#define DEF_MIDI_CHECK_RATE   1000

default MIDI checks per keyboard cycle (i.e.

normally x checks per 4 ms - raw MIDI only)

Definition at line 80 of file keyboard.h.

◆ DEF_MIDI_RPT

#define DEF_MIDI_RPT   1000

allowed non-reads between reads (raw MIDI only)

Definition at line 83 of file keyboard.h.

◆ EXT_TRIGGER_INTERVAL

#define EXT_TRIGGER_INTERVAL   4

Definition at line 74 of file keyboard.h.

◆ key_down

#define key_down   104

Definition at line 20 of file keyboard.h.

◆ key_down2

#define key_down2   116

Definition at line 21 of file keyboard.h.

◆ key_left

#define key_left   100

Definition at line 14 of file keyboard.h.

◆ key_left2

#define key_left2   113

Definition at line 15 of file keyboard.h.

◆ key_right

#define key_right   102

Definition at line 16 of file keyboard.h.

◆ key_right2

#define key_right2   114

Definition at line 17 of file keyboard.h.

◆ KEY_RPT_INTERVAL

#define KEY_RPT_INTERVAL   40

Definition at line 76 of file keyboard.h.

◆ key_up

#define key_up   98

Definition at line 18 of file keyboard.h.

◆ key_up2

#define key_up2   111

Definition at line 19 of file keyboard.h.

◆ LIVES_XEVENT_TYPE_KEYPRESS

#define LIVES_XEVENT_TYPE_KEYPRESS   2

Definition at line 6 of file keyboard.h.

◆ LIVES_XEVENT_TYPE_KEYRELEASE

#define LIVES_XEVENT_TYPE_KEYRELEASE   3

Definition at line 7 of file keyboard.h.

Function Documentation

◆ dblsize_callback()

boolean dblsize_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 495 of file keyboard.c.

◆ ext_triggers_poll()

boolean ext_triggers_poll ( livespointer  )

poll for external playback start

if we have OSC we will poll it here,

Definition at line 67 of file keyboard.c.

◆ fade_callback()

boolean fade_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 467 of file keyboard.c.

◆ faster_callback()

boolean faster_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 377 of file keyboard.c.

◆ fullscreen_callback()

boolean fullscreen_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 439 of file keyboard.c.

◆ handle_cached_keys()

void handle_cached_keys ( void  )

smooth the key repeat for scratching

Definition at line 141 of file keyboard.c.

◆ key_press_or_release()

boolean key_press_or_release ( LiVESWidget *  ,
LiVESXEventKey *  ,
livespointer   
)

wrapper for pl_key_function

Definition at line 134 of file keyboard.c.

◆ less_callback()

boolean less_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 368 of file keyboard.c.

◆ loop_callback()

boolean loop_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 488 of file keyboard.c.

◆ loop_cont_callback()

boolean loop_cont_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 453 of file keyboard.c.

◆ more_callback()

boolean more_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 387 of file keyboard.c.

◆ ping_pong_callback()

boolean ping_pong_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 460 of file keyboard.c.

◆ pl_key_function()

boolean pl_key_function ( boolean  down,
uint16_t  unicode,
uint16_t  keymod 
)

all funky stuff with keys

Definition at line 151 of file keyboard.c.

Referenced by key_press_or_release().

◆ rec_callback()

boolean rec_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 502 of file keyboard.c.

◆ sepwin_callback()

boolean sepwin_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 446 of file keyboard.c.

◆ showfct_callback()

boolean showfct_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 474 of file keyboard.c.

◆ showsubs_callback()

boolean showsubs_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 481 of file keyboard.c.

◆ skip_back_callback()

boolean skip_back_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 396 of file keyboard.c.

◆ skip_forward_callback()

boolean skip_forward_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 405 of file keyboard.c.

◆ slower_callback()

boolean slower_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 358 of file keyboard.c.

◆ stop_callback()

boolean stop_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 432 of file keyboard.c.

◆ voldown_callback()

boolean voldown_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 423 of file keyboard.c.

◆ volup_callback()

boolean volup_callback ( LiVESAccelGroup *  ,
LiVESWidgetObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)

Definition at line 414 of file keyboard.c.

Variable Documentation

◆ cached_key

uint16_t cached_key

Definition at line 10 of file keyboard.h.

Referenced by handle_cached_keys(), open_vid_playback_plugin(), and pl_key_function().

◆ cached_mod

uint16_t cached_mod

Definition at line 11 of file keyboard.h.

Referenced by handle_cached_keys(), open_vid_playback_plugin(), and pl_key_function().