Some time ago I wanted to play an old-school game and I wanted to use my gamepad, and of course I could not find it. The solution? Create my own gamepad, but with limited hardware related skills that would be a little bit difficult. The next best thing - to use an touch capable device. But it turned out quite quickly that it would not be so easy. It’s not a problem when the HTML5 gamepad controls an HTML5 game on the same server/browser, but what about native games? A driver would be needed for that and my level of expertise in that area was the same as the level in hardware bulding mumbo-jumbo. My experimental “driver” had two main goals: to run on ubuntu and be build in node.js
The following Post is not a tutorial, so I’m not covering the subject from top to bottom, but I’m providing, a great starting point. This should give you some idea how things work and what to expect from such a device. At the end I’m linking to a Node.js application which acts like a device driver. This app is not in any way a production ready solution, but only an experiment, so keep in mind that there are many bugs, and that there is a high posibility that it will not run on your system (I’ve created it and tested only on Ubuntu 13.10)
What is it?
It's a small HTML5 based EPUB document reader. I’ve created it partially for my fiancée’s writing blog, and partially because I have never done anything with an EPUB format, and I didn’t know anything about it.
Right now the reader is in an early alpha stage and works on Google Chrome and Mozilla Firefox. The next step is to get it working on IE9/10 and other browsers.
For those who don’t know what an EPUB document is - EPUB is a standarised open format for electronic publications. It is based on XML documents compressed together as a single zip file. The most important properties of this format are:
- An EPUB document is not divided into pages, the reading software decides how to divide the content into pages and how to display it,
- It supports CSS,
- Support for SVG and raster images.
Right now the goal for me is to create a simple reader that supports as many simple EPUB documents as possible, so anyone (eg. a writer) can embed an EPUB document on his blog or page.
Time for some short technical summary.