
907 P.2d 262 (1995)
138 Or. App. 209
Robert "Bob" THOMAS, Appellant,
v.
STATE of Oregon, DEPARTMENT OF STATE POLICE, aka "OSP," a State agency; Gilbert Jerry "G.J." Russell, an OSP official, Respondents.
93CV3189; CA A84997.
Court of Appeals of Oregon.
Argued and Submitted May 10, 1995.
Decided December 13, 1995.
*263 James B. Ehrlich argued the cause, for appellant. With him on the briefs, was Green, Elliott & Ehrlich.
Pamela G. Wood, Assistant Attorney General, argued the cause, for respondents. With her on the brief, were Theodore R. Kulongoski, Attorney General, and Virginia L. Linder, Solicitor General.
Before DEITS, P.J., and De MUNIZ and HASELTON, JJ.
DEITS, Presiding Judge.
Plaintiff brought this action pleading a claim for inverse condemnation and a claim under 42 USC § 1983. The defendants are the state, the Oregon State Police and a state police officer. Plaintiff contended that the 1991 enactment and subsequent enforcement of ORS 167.164 constituted an uncompensated taking of plaintiff's property, in violation of Article I, section 18, of the Oregon Constitution and the Fifth Amendment to the United States Constitution.
ORS 167.164 prohibits and criminalizes, inter alia, the manufacture, distribution in various specified ways or possession of "gray machines" (i.e., privately owned machines usable for video poker).[1] Before the statute was enacted, plaintiff was in the business of conducting some of the activities that the statute made illegal. The trial court granted defendants' motion to dismiss both claims pursuant to ORCP 21 A(8). Plaintiff appeals and assigns error to the dismissal of his taking claim.
It has been clearly and repeatedly held that legitimate governmental regulations that are aimed at preventing or correcting public hazards, nuisances or unlawful activities cannot give rise to a taking under either constitution. Keystone Bituminous Coal Assoc. v. DeBenedictis, 480 U.S. 470, 491-92 & n. 22, 107 S.Ct. 1232, 1245-46 & n. 22, 94 L.Ed.2d 472 (1987); Suess Builders v. City of Beaverton, 294 Or. 254, 258-59, 656 P.2d 306 (1982); see also Eckles v. State of Oregon, 306 Or. 380, 398, 760 P.2d 846 (1988). The prohibition of producing and trafficking in a device usable for gambling is a regulation of that kind. Accordingly, the trial court correctly dismissed the action.
Affirmed.
NOTES
[1]  The term "gray machine" derives from the fact that, before 1991, state law did not prohibit the possession of such devices for purely amusement purposes, but prohibited the use of the machines for gambling. In addition, before 1991, localities had the option of banning the devices altogether.
