updated button library?

I have some code from a few years ago that uses "#include <Button.h>" but that is now throwing up errors such as fatal error: WProgram.h: No such file or directory.

Various posts suggest that you shouldn't try to fix these errors but rather find a modern library. What's the best way for implementing buttons?

What's the best way for implementing buttons?

Use the latest version of the Button library

UKHeliBob:
Use the latest version of the Button library

According to this page, it's 6 years old?

It may be that old, but I looked at the files and don't see how they won't compile error free on the later IDE.

Make sure you have the library installed correctly.. best to have the IDE install them for you from the zip file. Then try compiling the libraries' example file.

I removed all button libraries and added this one

http://arduino-info.wikispaces.com/HAL-LibrariesUpdates

which solved the problem. Thanks for your help