Skip to content

Commit

Permalink
Added mouse support for the Atari.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschmidt committed Jan 20, 2014
1 parent a24865d commit 510678b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cpu/6502/ipconfig/Makefile.atarixl.defines
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFINES = WITH_DNS,WITH_GUI
DEFINES = WITH_DNS,WITH_GUI,WITH_MOUSE
2 changes: 1 addition & 1 deletion examples/email/Makefile.atarixl.defines
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE
2 changes: 1 addition & 1 deletion examples/ftp/Makefile.atarixl.defines
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE
2 changes: 1 addition & 1 deletion examples/irc/Makefile.atarixl.defines
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE
2 changes: 1 addition & 1 deletion examples/webbrowser/Makefile.atarixl.defines
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE
3 changes: 3 additions & 0 deletions platform/atarixl/Makefile.atarixl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ disk: all
cp $(CONTIKI_PROJECT).$(TARGET) atr/autorun.sys
cp $(CONTIKI)/tools/$(TARGET)/sample.cfg atr/contiki.cfg
cp cs8900a.eth atr/cs8900a.eth
ifeq ($(findstring WITH_MOUSE,$(DEFINES)),WITH_MOUSE)
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
endif
ifeq ($(HTTPD-CFS),1)
cp httpd-cfs/index.htm atr/index.htm
cp httpd-cfs/backgrnd.gif atr/backgrnd.gif
Expand Down
3 changes: 3 additions & 0 deletions platform/atarixl/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */

#define MOUSE_CONF_XTOC(x) ((x) / 8)
#define MOUSE_CONF_YTOC(y) ((y) / 8)

#define textcolor(color) COLOR_WHITE

#define BORDERCOLOR COLOR_BLACK
Expand Down
25 changes: 25 additions & 0 deletions tools/6502/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ contiki-atari-1.atr: atarixl-makes
cp ../../examples/wget/wget.atarixl atr/wget.com
cp ../atarixl/default.cfg atr/contiki.cfg
cp ../../cpu/6502/ethconfig/cs8900a.eth atr/cs8900a.eth
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
cp $(CC65_HOME)/mou/atrxami.mou atr/ami.mou
cp $(CC65_HOME)/mou/atrxjoy.mou atr/joy.mou
cp $(CC65_HOME)/mou/atrxtrk.mou atr/trk.mou
cp $(CC65_HOME)/mou/atrxtt.mou atr/tt.mou
$(DIR2ATR) -b Dos25 1040 $@ atr
rm -r atr

Expand All @@ -201,6 +206,11 @@ contiki-atari-2.atr: atarixl-makes
cp ../../../contikiprojects/vandenbrande.com/twitter/platform/atarixl/breadbox64.atarixl atr/breadbox.com
cp ../atarixl/default.cfg atr/contiki.cfg
cp ../../cpu/6502/ethconfig/cs8900a.eth atr/cs8900a.eth
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
cp $(CC65_HOME)/mou/atrxami.mou atr/ami.mou
cp $(CC65_HOME)/mou/atrxjoy.mou atr/joy.mou
cp $(CC65_HOME)/mou/atrxtrk.mou atr/trk.mou
cp $(CC65_HOME)/mou/atrxtt.mou atr/tt.mou
$(DIR2ATR) -b Dos25 1040 $@ atr
rm -r atr

Expand All @@ -213,6 +223,11 @@ contiki-atari-3.atr: atarixl-makes
cp ../../examples/ftp/ftp-client.atarixl atr/ftp.com
cp ../atarixl/default.cfg atr/contiki.cfg
cp ../../cpu/6502/ethconfig/cs8900a.eth atr/cs8900a.eth
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
cp $(CC65_HOME)/mou/atrxami.mou atr/ami.mou
cp $(CC65_HOME)/mou/atrxjoy.mou atr/joy.mou
cp $(CC65_HOME)/mou/atrxtrk.mou atr/trk.mou
cp $(CC65_HOME)/mou/atrxtt.mou atr/tt.mou
$(DIR2ATR) -b Dos25 1040 $@ atr
rm -r atr

Expand All @@ -225,6 +240,11 @@ contiki-atari-4.atr: atarixl-makes
cp ../../examples/telnet-server/telnet-server.atarixl atr/telnetd.com
cp ../atarixl/default.cfg atr/contiki.cfg
cp ../../cpu/6502/ethconfig/cs8900a.eth atr/cs8900a.eth
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
cp $(CC65_HOME)/mou/atrxami.mou atr/ami.mou
cp $(CC65_HOME)/mou/atrxjoy.mou atr/joy.mou
cp $(CC65_HOME)/mou/atrxtrk.mou atr/trk.mou
cp $(CC65_HOME)/mou/atrxtt.mou atr/tt.mou
cp ../../examples/webserver/httpd-cfs/index.htm atr/index.htm
cp ../../examples/webserver/httpd-cfs/backgrnd.gif atr/backgrnd.gif
cp ../../examples/webserver/httpd-cfs/contiki.gif atr/contiki.gif
Expand All @@ -247,6 +267,11 @@ contiki-atari.atr: atarixl-makes
cp ../../examples/telnet-server/telnet-server.atarixl atr/telnetd.com
cp ../atarixl/default.cfg atr/contiki.cfg
cp ../../cpu/6502/ethconfig/cs8900a.eth atr/cs8900a.eth
cp $(CC65_HOME)/mou/atrxst.mou atr/contiki.mou
cp $(CC65_HOME)/mou/atrxami.mou atr/ami.mou
cp $(CC65_HOME)/mou/atrxjoy.mou atr/joy.mou
cp $(CC65_HOME)/mou/atrxtrk.mou atr/trk.mou
cp $(CC65_HOME)/mou/atrxtt.mou atr/tt.mou
cp ../../examples/webserver/httpd-cfs/index.htm atr/index.htm
cp ../../examples/webserver/httpd-cfs/backgrnd.gif atr/backgrnd.gif
cp ../../examples/webserver/httpd-cfs/contiki.gif atr/contiki.gif
Expand Down

0 comments on commit 510678b

Please sign in to comment.