--- title: "Adding a Joystick For the Spectrum/2068" type: "article" slug: "adding-a-joystick-for-the-spectrum-2068" url: "http://localhost/article/adding-a-joystick-for-the-spectrum-2068/" markdown_url: "http://localhost/article/adding-a-joystick-for-the-spectrum-2068.md" published_at: "2020-10-27T17:07:45+00:00" modified_at: "2026-06-21T23:36:14+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Having converted your 2068 to Spectrum mode of operation, you will find that most British software can be operated successfully from the keyboard, but a joystick might make life a little easier. While the joystick ports may be successfully accessed by the appropriate IN commands, this is of little use for commercial software. A variety…" category: - name: "Time Designs Magazine" slug: "time-designs" taxonomy: "category" url: "http://localhost/category/periodicals/time-designs/" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Hardware project" slug: "hardware-project" taxonomy: "post_tag" url: "http://localhost/tag/hardware-project/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Jack Keene" slug: "jack-keene" taxonomy: "indiv" url: "http://localhost/indiv/jack-keene/" publication: "Time Designs Magazine" publication_r: id: 10277 title: "Time Designs Magazine" type: "periodical" url: "http://localhost/periodical/time-designs-magazine/" authors: "Jack Keene" authors_r: - name: "Jack Keene" slug: "jack-keene" taxonomy: "indiv" url: "http://localhost/indiv/jack-keene/" volume: "2" issue: "4" issues_articles: - id: 26778 title: "Time Designs Magazine v2 n4" type: "issue" url: "http://localhost/issue/time-designs-magazine-v2-n4/" pages: "27" pubdate: "May/June 1986" archive_link: false volumeissue: "v2n4" --- # Adding a Joystick For the Spectrum/2068 Having converted your 2068 to Spectrum mode of operation, you will find that most British software can be operated successfully from the keyboard, but a joystick might make life a little easier. While the joystick ports may be successfully accessed by the appropriate IN commands, this is of little use for commercial software. A variety of joystick conventions are used with the Spectrum, and many programs offer the choice of several. The cursor key interface uses the cursor key lines + 0 for fire. The Sinclair Interface uses 6, 7, 8, 9 and 0. However, the most common interface encountered is the Kempston style interface (Kempston is the trademark of Kempston Electronics). The Kempston protocol interface is addressed to port 31 and may be accessed from BASIC via IN 31. The following simple program ``` 10 PRINT IN 31;: GO TO 10 ``` will return the following values for the appropriate joystick direction: ``` RIGHT = 1 UP/RIGHT = 9 LEFT - 2 UP/LEFT = 10 DOWN = 4 DOWN/RIGHT = 5 UP = 8 DOWN/LEFT = 6 FIRE ADDS 16 TO ALL VALUES ``` This type interface may be constructed with a simple one chip circuit to plug in at the rear expansion connector, the cartridge port, or even wired in directly. Due to simplistic decoding (A5 and /IORQ), this device will respond to more than port 31. However, this works well with most other peripheral devices. If you are so inclined, the schematic in Fig. 1 illustrates the interface from the wiring side view with the appropriate connection to the expansion connector labeled. An expansion connector layout for the 2068 is included for your reference. [![Image](http://localhost/wp-content/uploads/2020/10/keene-kempston-1024x980.png "keene kempston")](http://localhost/wp-content/uploads/2020/10/keene-kempston.png)