33 NSLOG(netsurf, INFO,
"mouse state: %s %s %s %s %s %s %s %s %s %s %s %s %s %s", mouse &
BROWSER_MOUSE_PRESS_1 ?
"P1" :
" ", mouse &
BROWSER_MOUSE_PRESS_2 ?
"P2" :
" ", mouse &
BROWSER_MOUSE_CLICK_1 ?
"C1" :
" ", mouse &
BROWSER_MOUSE_CLICK_2 ?
"C2" :
" ", mouse &
BROWSER_MOUSE_DOUBLE_CLICK ?
"DC" :
" ", mouse &
BROWSER_MOUSE_TRIPLE_CLICK ?
"TC" :
" ", mouse &
BROWSER_MOUSE_DRAG_1 ?
"D1" :
" ", mouse &
BROWSER_MOUSE_DRAG_2 ?
"D2" :
" ", mouse &
BROWSER_MOUSE_DRAG_ON ?
"DO" :
" ", mouse &
BROWSER_MOUSE_HOLDING_1 ?
"H1" :
" ", mouse &
BROWSER_MOUSE_HOLDING_2 ?
"H2" :
" ", mouse &
BROWSER_MOUSE_MOD_1 ?
"M1" :
" ", mouse &
BROWSER_MOUSE_MOD_2 ?
"M2" :
" ", mouse &
BROWSER_MOUSE_MOD_3 ?
"M3" :
" ");
Browser window creation and manipulation interface.
void browser_mouse_state_dump(browser_mouse_state mouse)
Debug function logs a browser mouse state.
browser_mouse_state
Mouse state: 1 is primary mouse button.
@ BROWSER_MOUSE_PRESS_1
primary button pressed
@ BROWSER_MOUSE_CLICK_2
button 2 clicked.
@ BROWSER_MOUSE_PRESS_2
auxillary button pressed
@ BROWSER_MOUSE_TRIPLE_CLICK
button triple clicked
@ BROWSER_MOUSE_CLICK_1
button 1 clicked.
@ BROWSER_MOUSE_MOD_2
2nd modifier key pressed (eg.
@ BROWSER_MOUSE_DOUBLE_CLICK
button double clicked
@ BROWSER_MOUSE_MOD_3
3rd modifier key pressed (eg.
@ BROWSER_MOUSE_MOD_1
1st modifier key pressed (eg.
@ BROWSER_MOUSE_DRAG_1
start of button 1 drag
@ BROWSER_MOUSE_HOLDING_2
during button 2 drag
@ BROWSER_MOUSE_HOLDING_1
during button 1 drag
@ BROWSER_MOUSE_DRAG_ON
a drag operation was started and a mouse button is still pressed
@ BROWSER_MOUSE_DRAG_2
start of button 2 drag
#define NSLOG(catname, level, logmsg, args...)