###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2012 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

title Seika Note Takers

####################
# Default Bindings #
####################

bind LeftJoystickPress HELP
bind RightJoystickPress LEARN

bind LeftButton+Rightbutton HOME
bind LeftButton FWINLT
bind RightButton FWINRT

bind LeftJoystickUp top
bind LeftJoystickDown BOT
bind LeftJoystickLeft LNBEG
bind LeftJoystickRight LNEND

bind RightJoystickUp LNUP
bind RightJoystickDown LNDN
bind RightJoystickLeft CHRLT
bind RightJoystickRight CHRRT

bind LeftJoystickLeft+RightJoystickUp ATTRUP
bind LeftJoystickLeft+RightJoystickDown ATTRDN
bind LeftJoystickRight+RightJoystickUp PRDIFLN
bind LeftJoystickRight+RightJoystickDown NXDIFLN
bind LeftJoystickUp+RightJoystickUp PRPROMPT
bind LeftJoystickUp+RightJoystickDown NXPROMPT
bind LeftJoystickDown+RightJoystickUp PRPGRPH
bind LeftJoystickDown+RightJoystickDown NXPGRPH

bind LeftJoystickLeft+RightJoystickLeft HWINLT
bind LeftJoystickLeft+RightJoystickRight HWINRT
bind LeftJoystickRight+RightJoystickLeft FWINLTSKIP
bind LeftJoystickRight+RightJoystickRight FWINRTSKIP
bind LeftJoystickUp+RightJoystickLeft PRSEARCH
bind LeftJoystickUp+RightJoystickRight NXSEARCH
bind LeftJoystickDown+RightJoystickLeft BACK
bind LeftJoystickDown+RightJoystickRight CSRJMP_VERT

bind LeftJoystickPress+RightJoystickUp INFO
bind LeftJoystickPress+RightJoystickDown PREFMENU
bind LeftJoystickPress+RightJoystickLeft PREFLOAD
bind LeftJoystickPress+RightJoystickRight PREFSAVE

bind RoutingKey ROUTE
bind LeftButton+RoutingKey SETLEFT
bind RightButton+RoutingKey DESCCHAR

bind RightJoystickUp+RoutingKey PRINDENT
bind RightJoystickDown+RoutingKey NXINDENT
bind RightJoystickLeft+RoutingKey PRDIFCHAR
bind RightJoystickRight+RoutingKey NXDIFCHAR

bind LeftJoystickPress+RoutingKey SETMARK
bind RightJoystickPress+RoutingKey GOTOMARK

bind LeftJoystickPress+RightJoystickPress PASTE
bind RoutingKey+RoutingKey CLIP_COPY
bind LeftJoystickUp+RoutingKey+RoutingKey CLIP_APPEND
bind LeftJoystickLeft+RoutingKey CLIP_NEW
bind LeftJoystickUp+RoutingKey CLIP_ADD
bind LeftJoystickRight+RoutingKey COPY_LINE
bind LeftJoystickDown+RoutingKey COPY_RECT

bind Space+Dot1 DISPMD
bind Space+Dot1+Dot7 DISPMD+off
bind Space+Dot1+Dot8 DISPMD+on
bind Space+Dot1+Dot2 SKPBLNKWINS
bind Space+Dot1+Dot2+Dot7 SKPBLNKWINS+off
bind Space+Dot1+Dot2+Dot8 SKPBLNKWINS+on
bind Space+Dot1+Dot4 CSRVIS
bind Space+Dot1+Dot4+Dot7 CSRVIS+off
bind Space+Dot1+Dot4+Dot8 CSRVIS+on
bind Space+Dot1+Dot2+Dot4 FREEZE
bind Space+Dot1+Dot2+Dot5 HELP
bind Space+Dot2+Dot4 SKPIDLNS
bind Space+Dot2+Dot4+Dot7 SKPIDLNS+off
bind Space+Dot2+Dot4+Dot8 SKPIDLNS+on
bind Space+Dot1+Dot2+Dot3 LEARN
bind Space+Dot1+Dot2+Dot3+Dot4 PREFMENU
bind Space+Dot1+Dot2+Dot3+Dot4+Dot7 PREFLOAD
bind Space+Dot1+Dot2+Dot3+Dot4+Dot8 PREFSAVE
bind Space+Dot1+Dot2+Dot3+Dot5 AUTOREPEAT
bind Space+Dot1+Dot2+Dot3+Dot5+Dot7 AUTOREPEAT+off
bind Space+Dot1+Dot2+Dot3+Dot5+Dot8 AUTOREPEAT+on
bind Space+Dot2+Dot3+Dot4 INFO
bind Space+Dot2+Dot3+Dot4+Dot5 CSRTRK
bind Space+Dot2+Dot3+Dot4+Dot5+Dot7 CSRTRK+off
bind Space+Dot2+Dot3+Dot4+Dot5+Dot8 CSRTRK+on
bind Space+Dot1+Dot3+Dot6 ATTRVIS
bind Space+Dot1+Dot3+Dot6+Dot7 ATTRVIS+off
bind Space+Dot1+Dot3+Dot6+Dot8 ATTRVIS+on
bind Space+Dot1+Dot2+Dot3+Dot6 CSRJMP_VERT
bind Space+Dot1+Dot2+Dot3+Dot6+Dot7 SWITCHVT_PREV
bind Space+Dot1+Dot2+Dot3+Dot6+Dot8 SWITCHVT_NEXT
bind Space+Dot2+Dot4+Dot5+Dot6 SLIDEWIN
bind Space+Dot2+Dot4+Dot5+Dot6+Dot7 SLIDEWIN+off
bind Space+Dot2+Dot4+Dot5+Dot6+Dot8 SLIDEWIN+on
bind Space+Dot2+Dot3+Dot5 SIXDOTS+on
bind Space+Dot2+Dot3+Dot6 SIXDOTS+off

map Dot1 DOT1
map Dot2 DOT2
map Dot3 DOT3
map Dot4 DOT4
map Dot5 DOT5
map Dot6 DOT6
map Dot7 DOT7
map Dot8 DOT8
map Backspace CONTROL
map Space SPACE

bind Backspace KEY_BACKSPACE
bind Backspace+Space KEY_ENTER

bind Space+Dot7 KEY_ESCAPE
bind Space+Dot8 KEY_TAB

bind Space+LeftJoystickUp KEY_PAGE_UP
bind Space+LeftJoystickDown KEY_PAGE_DOWN
bind Space+LeftJoystickLeft KEY_HOME
bind Space+LeftJoystickRight KEY_END
bind Space+LeftJoystickPress KEY_INSERT

bind Space+RightJoystickUp KEY_CURSOR_UP
bind Space+RightJoystickDown KEY_CURSOR_DOWN
bind Space+RightJoystickLeft KEY_CURSOR_LEFT
bind Space+RightJoystickRight KEY_CURSOR_RIGHT
bind Space+RightJoystickPress KEY_DELETE

bind Space+RoutingKey KEY_FUNCTION
bind Backspace+RoutingKey SWITCHVT

bind Backspace+LeftJoystickUp SAY_LOUDER
bind Backspace+LeftJoystickDown SAY_SOFTER
bind Backspace+LeftJoystickLeft SAY_SLOWER
bind Backspace+LeftJoystickRight SAY_FASTER
bind Backspace+LeftJoystickPress AUTOSPEAK

bind Backspace+RightJoystickUp SAY_ABOVE
bind Backspace+RightJoystickDown SAY_BELOW
bind Backspace+RightJoystickLeft MUTE
bind Backspace+RightJoystickRight SAY_LINE
bind Backspace+RightJoystickPress SPKHOME


####################
# Default Bindings #
####################

context menu

bind RightJoystickPress PREFMENU
bind RightJoystickUp MENU_PREV_ITEM
bind RightJoystickDown MENU_NEXT_ITEM
bind RightJoystickLeft MENU_PREV_SETTING
bind RightJoystickRight MENU_NEXT_SETTING

bind LeftJoystickUp MENU_FIRST_ITEM
bind LeftJoystickDown MENU_LAST_ITEM
bind LeftJoystickLeft PREFLOAD
bind LeftJoystickRight PREFSAVE


